diff options
author | Brendan Higgins <brendanhiggins@google.com> | 2019-09-23 11:02:44 +0200 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2019-10-01 01:35:01 +0200 |
commit | ff7b437f36b026dcd7351f86a90a0424c891dc06 (patch) | |
tree | 7ae9633d9ca1571fe96a5486aab80b4088a6a46e /tools/testing/kunit/kunit_kernel.py | |
parent | kunit: tool: add Python wrappers for running KUnit tests (diff) | |
download | linux-ff7b437f36b026dcd7351f86a90a0424c891dc06.tar.xz linux-ff7b437f36b026dcd7351f86a90a0424c891dc06.zip |
kunit: defconfig: add defconfigs for building KUnit tests
Add defconfig for UML and a fragment that can be used to configure other
architectures for building KUnit tests. Add option to kunit_tool to use
a defconfig to create the kunitconfig.
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/kunit/kunit_kernel.py')
-rw-r--r-- | tools/testing/kunit/kunit_kernel.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/kunit/kunit_kernel.py b/tools/testing/kunit/kunit_kernel.py index 07c0abf2f47d..bf3876835331 100644 --- a/tools/testing/kunit/kunit_kernel.py +++ b/tools/testing/kunit/kunit_kernel.py @@ -14,6 +14,7 @@ import os import kunit_config KCONFIG_PATH = '.config' +KUNITCONFIG_PATH = 'kunitconfig' class ConfigError(Exception): """Represents an error trying to configure the Linux kernel.""" @@ -81,7 +82,7 @@ class LinuxSourceTree(object): def __init__(self): self._kconfig = kunit_config.Kconfig() - self._kconfig.read_from_file('kunitconfig') + self._kconfig.read_from_file(KUNITCONFIG_PATH) self._ops = LinuxSourceTreeOperations() def clean(self): |