From ec1ea1c665864903c4ea2aaefcde6100fbecdd4b Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Sat, 9 Nov 2024 16:48:10 +0100 Subject: [PATCH] docs: update skipping-incomplete.md --- docs/skipping-incomplete.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/skipping-incomplete.md b/docs/skipping-incomplete.md index e3dece1d..5add663f 100644 --- a/docs/skipping-incomplete.md +++ b/docs/skipping-incomplete.md @@ -17,8 +17,7 @@ however, it will indicate that some tests were skipped in the final output. ```bash [Example] function test_skipped() { if [[ $OS != "GEOS" ]]; then - skip - return + skip && return fi assert_empty "not reached" @@ -26,8 +25,7 @@ function test_skipped() { function test_skipped_with_reason() { if [[ $OS != "GEOS" ]]; then - skip "Not running under Commodore" - return + skip "Not running under Commodore" && return fi assert_empty "not reached"