kunit: tool: revamp message for invalid kunitconfig
authorDaniel Latypov <dlatypov@google.com>
Thu, 11 Nov 2021 18:33:56 +0000 (10:33 -0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 13 Dec 2021 20:57:30 +0000 (13:57 -0700)
commitc44895b6cd8517c022dcc3d6fd4cd9bea1184a06
tree6b3c4e1aabe541aaa6f128d532dd7b40300aa680
parent9f57cc76eccc1e0a369bb051c4b0d596e7d15e30
kunit: tool: revamp message for invalid kunitconfig

The current error message is precise, but not very clear if you don't
already know what it's talking about, e.g.

> $ make ARCH=um olddefconfig O=.kunit
> ERROR:root:Provided Kconfig is not contained in validated .config. Following fields found in kunitconfig, but not in .config: CONFIG_DRM=y

Try to reword the error message so that it's
* your missing options usually have unsatisified dependencies
* if you're on UML, that might be the cause (it is, in this example)

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit_kernel.py