mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 17:25:38 +00:00
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>
This commit is contained in:
parent
c143b7753b
commit
98d0a685cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user