Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp998660iob; Fri, 13 May 2022 19:07:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKUbLWySuGLuRMgb/mki6/tILeugnm3BWx2QMh+0BmjOtHoMHfwf6k66QyPZRJdFGh5lVR X-Received: by 2002:a05:6000:1d90:b0:20c:9efd:bd6b with SMTP id bk16-20020a0560001d9000b0020c9efdbd6bmr6200692wrb.605.1652494028586; Fri, 13 May 2022 19:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652494028; cv=none; d=google.com; s=arc-20160816; b=O8Pke9yhHMHnQnQCB+JvTZ8GQwsk7ecGwnZ7kFlpVEuGOQkpkSiEx3T0I/rsJ3MfVy EpTyRjfIUGiRTeYGEiII73GLDHS85rnsr+zmynH0onsb3rQFjLyiz0X1db1fGjAhRlCY 6f7WeG4SVnXQHf2pwlmm0oR5jEsYdLtw9+CO6LsVJBYX9xAk7eWhLh1EgiQz0KTfI5I6 X9w3MsSuMq+iThGZDI+y6JJ71NumMMQNtxOhyunFyV9spQfIyoCacNQdgdTAu0c9eLU3 FFpOsJsT6kXdm85pY/BxR6+OvHii7dMvpA3g4T6/mDlKc+scjZOF60dFwIS8h2RwGXpG Ei2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=llEoX+p/O6HR36Ljgn5NZ7PhsoLdAcO1wdmtCWdau7g=; b=sSv/Bob/Wro/PFFpKBPGiiQFJdbig2V5GBbEXCQTZPzOkBXZmhaO7FcGhCXtU52ZH5 bXeywi5bbZ35nPkxQ6X65TJxjU4WG+JUbt306yIGPvMB1Arm8dYWzzJYTCntE0hME/rU RmwUd/4IaTHhnhNeCDVG3DN4BPyZZKo7W4v3lmWnIjMoD8rM1i3gyaZs4nM93TfLg7AE PEvTKUOA2mG9wKhkBE5JXcp+mi1lDLO/DJM0zwo0aVNsY69gvkk01u+/mDAvgcgPfAtT M+v0fZKuP8JO3vBYqdcoVzhFMIxST6whluFB3vemGVH5djRI4namjFJe42e2zN1CSvzg C0Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=GWYIpBLP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q11-20020adff50b000000b0020c5edaa539si3250708wro.794.2022.05.13.19.07.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 19:07:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=GWYIpBLP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 508B148B82C; Fri, 13 May 2022 17:27:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344949AbiELSho (ORCPT + 99 others); Thu, 12 May 2022 14:37:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236560AbiELShl (ORCPT ); Thu, 12 May 2022 14:37:41 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED3436949B for ; Thu, 12 May 2022 11:37:40 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id i19so11897980eja.11 for ; Thu, 12 May 2022 11:37:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=llEoX+p/O6HR36Ljgn5NZ7PhsoLdAcO1wdmtCWdau7g=; b=GWYIpBLPjk3riEZxwMpIDYkFGs7dudx59bqS5MYiUhPdqqxKzzIlgXrIfotpgYkiOX BZxjfCoxnp7YzyxVh+yhk4lj7jvDrrHCJ5NMPiwh1pskbQd5bgfBOy6AewOr0M4OdbgX KUGVM21PAEUZK+Vp605oKDgY4lgGckHAUwQRRFwwbyfveKlk48rhK5LDncAsYrpWKLoZ qmi6BkwKypyNgFuBA+q97132Qx3obxmbHKhzJ4KnqpMLLUficrvw6z4Vger/GRJEWXDn hC9+yh9JWEbmwC6Wx7/jHo/3hidA0DtTN4PhMUuQGZmBK6iKHqzVCX/4xluzXBJY7395 i1UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=llEoX+p/O6HR36Ljgn5NZ7PhsoLdAcO1wdmtCWdau7g=; b=3objDOrm0HpK8NE9v/xPiqLgZO/6XYlHWMHHPSGWq08+iRDS6JtPRR2VS/PH+pq4br foXZbUFX2DBCLU2rflyr2mTg8lQ4alEqYPoHKzNmjPZUfvLGXTHPQEp4NOBZMBT7JaOd s+rv2m6gKsn3hLRBQdjDEMMpCp+3+EwOo9c+Xi/YujImNXSZNYvSrRKXHgzErz8x0wtD NkDIaHv/7fUSDqCsf3ALOiU8+6Mwrl1TIKX5UWdVg/IK5Ut2HmDDBmk24hlGTm8LtnjP NARDGcEKJ7doyZG1jr6CEtqyDJC7olfVz/Lon1+3YWaeQOZHXJDB3IvLqbZYATbnQfQZ phMg== X-Gm-Message-State: AOAM533qa75h7EOZbpLlpw2g9oNpUBX2p4WLc+E2MfQfHil7469PfDrf HXQ7n+gbvXqd6Mx0IcGXPSvb8MEdcQ02ZDRKJsJX1g== X-Received: by 2002:a17:907:6d0a:b0:6f9:b861:82b8 with SMTP id sa10-20020a1709076d0a00b006f9b86182b8mr1124352ejc.478.1652380659345; Thu, 12 May 2022 11:37:39 -0700 (PDT) MIME-Version: 1.0 References: <20220509204909.2464496-1-dlatypov@google.com> In-Reply-To: <20220509204909.2464496-1-dlatypov@google.com> From: Brendan Higgins Date: Thu, 12 May 2022 14:37:27 -0400 Message-ID: Subject: Re: [PATCH] kunit: tool: misc cleanups To: Daniel Latypov Cc: davidgow@google.com, linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 9, 2022 at 4:49 PM Daniel Latypov wrote: > > This primarily comes from running pylint over kunit tool code and > ignoring some warnings we don't care about. > If we ever got a fully clean setup, we could add this to run_checks.py, > but we're not there yet. > > Fix things like > * Drop unused imports > * check `is None`, not `== None` (see PEP 8) > * remove redundant parens around returns > * remove redundant `else` / convert `elif` to `if` where appropriate > * rename make_arch_qemuconfig() param to base_kunitconfig (this is the > name used in the subclass, and it's a better one) > * kunit_tool_test: check the exit code for SystemExit (could be 0) > > Signed-off-by: Daniel Latypov Reviewed-by: Brendan Higgins