提交 98d0a685 编写于 作者: M Masami Hiramatsu 提交者: Steven Rostedt (VMware)

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@devnote2Signed-off-by: NMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org>
上级 c143b775
...@@ -124,9 +124,16 @@ for i in samples/good-* ; do ...@@ -124,9 +124,16 @@ for i in samples/good-* ; do
xpass $BOOTCONF -a $i $INITRD xpass $BOOTCONF -a $i $INITRD
done done
echo
echo "=== Summary ==="
echo "# of Passed: $(expr $NO - $NG - 1)"
echo "# of Failed: $NG"
echo echo
if [ $NG -eq 0 ]; then if [ $NG -eq 0 ]; then
echo "All tests passed" echo "All tests passed"
else else
echo "$NG tests failed" echo "$NG tests failed"
exit 1
fi fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册