kunit: test: Improve error messages for kunit_tool when kunitconfig is invalid
authorHeidi Fahim <heidifahim@google.com>
Tue, 26 Nov 2019 22:36:16 +0000 (14:36 -0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 19 Feb 2020 22:54:29 +0000 (15:54 -0700)
commitdde54b9492a8ba46bcd7e7e26172adf2bfcea817
tree463427020d33676c6e59ede2e6b3d93a2cc431a3
parente20d8e81a0e06c672e964c9f01100f07a64b1ce6
kunit: test: Improve error messages for kunit_tool when kunitconfig is invalid

Previous error message for invalid kunitconfig was vague. Added to it so
that it lists invalid fields and prompts for them to be removed.  Added
validate_config function returning whether or not this kconfig is valid.

Signed-off-by: Heidi Fahim <heidifahim@google.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_kernel.py