mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
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: Nícolas F. R. A. Prado <nfraprado@collabora.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
d90b7c705c
commit
d63fde98b8
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user