kunit: Do not pollute source directory with generated files (.kunitconfig)
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 26 Oct 2020 16:59:25 +0000 (18:59 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 10 Nov 2020 20:12:54 +0000 (13:12 -0700)
commitfcdb0bc08ced274078f371e1e0fe6421a97fa9f2
treee8d7c9f42453686164ee1901e6fb0ec954970a47
parentb7e0b983ff13714d261883e89910b0755eb12169
kunit: Do not pollute source directory with generated files (.kunitconfig)

When --build_dir is provided use it and do not pollute source directory
which even can be mounted over network or read-only.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Tested-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit.py
tools/testing/kunit/kunit_kernel.py