From: Daniel Latypov Date: Tue, 18 Jan 2022 19:09:20 +0000 (-0800) Subject: kunit: tool: drop unused KernelDirectoryPath var X-Git-Tag: v6.6.17~7462^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89aa72cd3052b70ade40fa02a018f8f509355790;p=platform%2Fkernel%2Flinux-rpi.git kunit: tool: drop unused KernelDirectoryPath var 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 Signed-off-by: Shuah Khan --- diff --git a/tools/testing/kunit/kunit.py b/tools/testing/kunit/kunit.py index bd2f7f0..4cb91d1 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')