Skip to content

Commit

Permalink
Add skip_test definition
Browse files Browse the repository at this point in the history
Signed-off-by: qwang59 <[email protected]>
  • Loading branch information
qwang59 authored and ysun committed Aug 2, 2024
1 parent 572a5f4 commit 93fbfc8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BM/common/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@ block_test() {
exit 2
}

skip_test() {
caller_info="${BASH_SOURCE[1]##*/}:${BASH_LINENO[0]}:${FUNCNAME[1]}()"
test_print_wrg "skip_test() is called by $caller_info"
test_print_wrg "SKIPPING TEST: $*"
exec_teardown
exit 0
}

# Wrapper function to mark a test as not applicable,
# it accepts a string to explain why the test is not
# applicable. exec_teardown is called before exiting with 32.
Expand Down

0 comments on commit 93fbfc8

Please sign in to comment.