aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorDaniel Latypov <[email protected]>2021-09-29 23:25:34 +0000
committerShuah Khan <[email protected]>2021-10-19 20:18:50 +0000
commitfe678fed2cda4c74d016171dce290b792b036663 (patch)
treefe3bd582f0c8cfa0941357144b7f249d695758eb /lib/string_helpers.c
parentkunit: tool: misc fixes (unused vars, imports, leaked files) (diff)
downloadkernel-fe678fed2cda4c74d016171dce290b792b036663.tar.gz
kernel-fe678fed2cda4c74d016171dce290b792b036663.zip
kunit: tool: show list of valid --arch options when invalid
Consider this attempt to run KUnit in QEMU: $ ./tools/testing/kunit/kunit.py run --arch=x86 Before you'd get this error message: kunit_kernel.ConfigError: x86 is not a valid arch After: kunit_kernel.ConfigError: x86 is not a valid arch, options are ['alpha', 'arm', 'arm64', 'i386', 'powerpc', 'riscv', 's390', 'sparc', 'x86_64'] This should make it a bit easier for people to notice when they make typos, etc. Currently, one would have to dive into the python code to figure out what the valid set is. Signed-off-by: Daniel Latypov <[email protected]> Reviewed-by: David Gow <[email protected]> Reviewed-by: Brendan Higgins <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions