diff options
author | Daniel Latypov <[email protected]> | 2021-12-14 11:30:10 -0800 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2021-12-15 11:51:16 -0700 |
commit | 1ee2ba89bea86d6389509e426583b49ac19b86f2 (patch) | |
tree | 17a84cdbc71ae7707f25eaeae94af71bbe8f332d /tools/testing/kunit/kunit_parser.py | |
parent | e0cc8c052a3992b01f51df1d51eaae49e5b2710f (diff) |
kunit: tool: make `build` subcommand also reconfigure if needed
If I created a kunitconfig file that was incomplete, then
$ ./tools/testing/kunit/kunit.py build --kunitconfig=my_kunitconfig
would silently drop all the options with unmet dependencies!
This is because it doesn't do the config check that `kunit.py config`
does.
So if I want to safely build a kernel for testing, I have to do
$ ./tools/testing/kunit/kunit.py config <flags>
$ ./tools/testing/kunit/kunit.py build <flags, again>
It seems unlikely that any user of kunit.py would want the current
`build` semantics.
So make it effectively do `kunit.py config` + `kunit.py build`.
Signed-off-by: Daniel Latypov <[email protected]>
Reviewed-by: Brendan Higgins <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/testing/kunit/kunit_parser.py')
0 files changed, 0 insertions, 0 deletions