Commit d63fde98 authored by Nícolas F. R. A. Prado's avatar Nícolas F. R. A. Prado Committed by Shuah Khan

selftests: ktap_helpers: Add a helper to abort the test

Similar to the C counterpart, add a helper function to abort the
remainder of the test.
Signed-off-by: default avatarNícolas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent d90b7c70
......@@ -87,6 +87,13 @@ ktap_test_result() {
fi
}
ktap_exit_fail_msg() {
echo "Bail out! " $@
ktap_print_totals
exit "$KSFT_FAIL"
}
ktap_print_totals() {
echo "# Totals: pass:$KTAP_CNT_PASS fail:$KTAP_CNT_FAIL xfail:0 xpass:0 skip:$KTAP_CNT_SKIP error:0"
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment