Skip to content

Commit 98d0a68

Browse files
mhiramatrostedt
authored andcommitted
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>
1 parent c143b77 commit 98d0a68

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎tools/bootconfig/test-bootconfig.sh‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,16 @@ for i in samples/good-* ; do
124124
xpass $BOOTCONF -a $i $INITRD
125125
done
126126

127+
128+
echo
129+
echo "=== Summary ==="
130+
echo "# of Passed: $(expr $NO - $NG - 1)"
131+
echo "# of Failed: $NG"
132+
127133
echo
128134
if [ $NG -eq 0 ]; then
129135
echo "All tests passed"
130136
else
131137
echo "$NG tests failed"
138+
exit 1
132139
fi

0 commit comments

Comments
 (0)