From patchwork Tue Jan 18 19:09:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Latypov X-Patchwork-Id: 12716804 X-Patchwork-Delegate: brendanhiggins@google.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 005EBC4332F for ; Tue, 18 Jan 2022 19:09:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348627AbiARTJj (ORCPT ); Tue, 18 Jan 2022 14:09:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245012AbiARTJf (ORCPT ); Tue, 18 Jan 2022 14:09:35 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69E18C061574 for ; Tue, 18 Jan 2022 11:09:35 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id 22-20020a250216000000b006120a553e38so17822600ybc.16 for ; Tue, 18 Jan 2022 11:09:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=QxtNo/KbZx5IgHz5z04uslp6z4FHBvH/n/H++ERzScA=; b=TIcbT3J28mGsN75/ffXhPadp0ACFt3wfUEtZOT0VtsvJW7T3V0pbOaiWNGqB5Q75wN GjRWvvIXG1VAyESLdtaYvE/pKWUScvfmC3ZkyFPWZ3KRxI0ZewupHRaBmmLqwprRPESi fSlFW1MF75Dqc2L9i7ijMwM0a5CxwdbEJj+H30HlBr2NeWN0p8mklEouLVvqctEpVTXr oTX8Xp7a8fH5Y0hEcWkiXzHLhQb3Qw2gFhCwOyyRsqETapkJeMLnGuLWdfFsJkyhBOYM GGvqlo+laECpJnd0Ftm2wYRhmRtnawyP5ALf3fqE3bwkPMMzLJaTNQn+DsWTRsXjs4eP rbRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=QxtNo/KbZx5IgHz5z04uslp6z4FHBvH/n/H++ERzScA=; b=jUNdslyxXy0nm9t/BZFNig+MGEVRAuBDa1N61FQPaguZbhSOYgOpCsTEaVvtUV53wo WP2B4AqPu/YsocDfsLWHQVxPw/Fkm5ftVGEaDsnEjkDMVlFgA+iE9huhYqU1ry7k7ipP 3f9L5P8xoWZLro4exn5l+7RxQO4CQDLJ6nCCE6O+rGgocOTDWntvpGIDI6lgP1XFq8Kt ydz2ouCOSO5Uuyy3GWhwyAtgxn2V5dv+mMBg568I0ttEAzwWES4LZE6JPm60L/CA0+MO 8EspZdUYY6FB5+EXFjKH6/8I9/zpv6zmRnkKpQ8Jg8kWf8+OYi9CzXbA4WgWDFic0WCw dBfg== X-Gm-Message-State: AOAM532JokLSSk+Ao276wB97r+KL3sv/aXLeQJ1NeHV5GqUw2+WZLpr3 v7tDgE6YtgqhgIn/77yr2T9HoxzCYtetNQ== X-Google-Smtp-Source: ABdhPJxleYIHreqkjvrzoaXG2AuFv3qsi4KjCyFK4enyPmfwWEIVgu0nzQpIOWBZyg/CwWvmplE/WwIWE9ef1w== X-Received: from dlatypov.svl.corp.google.com ([2620:15c:2cd:202:7fc9:5977:ab73:1d36]) (user=dlatypov job=sendgmr) by 2002:a05:6902:1365:: with SMTP id bt5mr26930889ybb.145.1642532974676; Tue, 18 Jan 2022 11:09:34 -0800 (PST) Date: Tue, 18 Jan 2022 11:09:20 -0800 In-Reply-To: <20220118190922.1557074-1-dlatypov@google.com> Message-Id: <20220118190922.1557074-3-dlatypov@google.com> Mime-Version: 1.0 References: <20220118190922.1557074-1-dlatypov@google.com> X-Mailer: git-send-email 2.34.1.703.g22d0c6ccf7-goog Subject: [PATCH 3/5] kunit: tool: drop unused KernelDirectoryPath var From: Daniel Latypov To: brendanhiggins@google.com, davidgow@google.com Cc: linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org, Daniel Latypov Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Commit be886ba90cce ("kunit: run kunit_tool from any directory") introduced this variable, but it was unused even in that commit. Since it's still unused now and callers can instead use get_kernel_root_path(), delete this var. Signed-off-by: Daniel Latypov Reviewed-by: David Gow Reviewed-by: Brendan Higgins --- tools/testing/kunit/kunit.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/kunit/kunit.py b/tools/testing/kunit/kunit.py index bd2f7f088c72..4cb91d191f1d 100755 --- a/tools/testing/kunit/kunit.py +++ b/tools/testing/kunit/kunit.py @@ -63,8 +63,6 @@ class KunitRequest(KunitExecRequest, KunitBuildRequest): pass -KernelDirectoryPath = sys.argv[0].split('tools/testing/kunit/')[0] - def get_kernel_root_path() -> str: path = sys.argv[0] if not __file__ else __file__ parts = os.path.realpath(path).split('tools/testing/kunit')