diff mbox series

kunit: Fix '--build_dir' option

Message ID 1567771541-7690-1-git-send-email-sj38.park@gmail.com (mailing list archive)
State Mainlined
Commit 6ec1b81d35453c055c134bb0e9f488ddd436a5aa
Headers show
Series kunit: Fix '--build_dir' option | expand

Commit Message

SeongJae Park Sept. 6, 2019, 12:05 p.m. UTC
kunit fails to run with '--build_dir' option because the option is not
properly sent to kernel running procedure.  This commit fixes the
problem.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
 tools/testing/kunit/kunit.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Shuah Sept. 6, 2019, 3:51 p.m. UTC | #1
On 9/6/19 6:05 AM, SeongJae Park wrote:
> kunit fails to run with '--build_dir' option because the option is not
> properly sent to kernel running procedure.  This commit fixes the
> problem.

Can you please include the failure you are seeing in the commit log

thanks,
-- Shuah
SeongJae Park Sept. 6, 2019, 4:11 p.m. UTC | #2
On Fri, Sep 6, 2019 at 5:51 PM shuah <shuah@kernel.org> wrote:
>
> On 9/6/19 6:05 AM, SeongJae Park wrote:
> > kunit fails to run with '--build_dir' option because the option is not
> > properly sent to kernel running procedure.  This commit fixes the
> > problem.
>
> Can you please include the failure you are seeing in the commit log

Yes, I will.


Thanks,
SeongJae Park

>
> thanks,
> -- Shuah
>
>
diff mbox series

Patch

diff --git a/tools/testing/kunit/kunit.py b/tools/testing/kunit/kunit.py
index 8d33980..e016430 100755
--- a/tools/testing/kunit/kunit.py
+++ b/tools/testing/kunit/kunit.py
@@ -62,9 +62,11 @@  def run_tests(linux: kunit_kernel.LinuxSourceTree,
 					      'Tests not Parsed.')
 	if request.raw_output:
 		kunit_parser.raw_output(
-			linux.run_kernel(timeout=request.timeout))
+			linux.run_kernel(timeout=request.timeout,
+					 build_dir=request.build_dir))
 	else:
-		kunit_output = linux.run_kernel(timeout=request.timeout)
+		kunit_output = linux.run_kernel(timeout=request.timeout,
+						build_dir=request.build_dir)
 		test_result = kunit_parser.parse_run_tests(kunit_output)
 	test_end = time.time()