diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2020-05-09 03:58:25 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-05-20 04:09:23 +0300 |
commit | 98d0a685cf8bcde23f4b0d1aa0a348fcef84569b (patch) | |
tree | 1b76734452c7c36f814702ddd754fe75a52cf2eb /tools/bootconfig | |
parent | c143b7753b308d5f7d03b165a7fdff1dda1f271d (diff) | |
download | linux-98d0a685cf8bcde23f4b0d1aa0a348fcef84569b.tar.xz |
tools/bootconfig: Add a summary of test cases and return error
Add summary lines of test cases and return an error
code if any test case fails so that tester don't have
to monitor the output.
Link: https://lkml.kernel.org/r/158898590533.22749.10269622752797822320.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/bootconfig')
-rwxr-xr-x | tools/bootconfig/test-bootconfig.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/bootconfig/test-bootconfig.sh b/tools/bootconfig/test-bootconfig.sh index 81b350ffd03f..eff16b77d5eb 100755 --- a/tools/bootconfig/test-bootconfig.sh +++ b/tools/bootconfig/test-bootconfig.sh @@ -124,9 +124,16 @@ for i in samples/good-* ; do xpass $BOOTCONF -a $i $INITRD done + +echo +echo "=== Summary ===" +echo "# of Passed: $(expr $NO - $NG - 1)" +echo "# of Failed: $NG" + echo if [ $NG -eq 0 ]; then echo "All tests passed" else echo "$NG tests failed" + exit 1 fi |