]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: tool: fix improper treatment of file location
authorBrendan Higgins <brendanhiggins@google.com>
Tue, 14 Jul 2020 20:41:30 +0000 (13:41 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 17 Jul 2020 20:17:49 +0000 (14:17 -0600)
commitfc87dd81ae1011633cde0b64b7938fed554d305f
treeb08deac6a340516618342b8ee64e48a5d6a6d0e4
parent3d452ddedeff8e30065df40a21ca38d9d0b71e5b
kunit: tool: fix improper treatment of file location

Commit ca3cb7ee9ec4 ("kunit: Fix TabError, remove defconfig code and
handle when there is no kunitconfig") and commit eeaf12116dba ("kunit:
kunit_tool: Separate out config/build/exec/parse") introduced two
closely related issues which built off of each other: they excessively
created the build directory when not present and modified a constant
(constants in Python only exist by convention).

Together these issues broken a number of unit tests for KUnit tool, so
fix them.

Fixed up commit log to fic checkpatch commit description style error.
Shuah Khan <skhan@linuxfoundation.org>

Fixes: ca3cb7ee9ec4 ("kunit: Fix TabError, remove defconfig code and handle when there is no kunitconfig")
Fixes: eeaf12116dba ("kunit: kunit_tool: Separate out config/build/exec/parse")
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit.py
tools/testing/kunit/kunit_tool_test.py