summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-10-23 13:34:33 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-10-23 13:34:33 -0400
commit8c06e033483215e5148bc803b61207b99d458a48 (patch)
tree95d6043e86bb1d0a5d72fa77b924827654911772 /tests
parentd2d5e5ad2e4b61493d27bfe8c9341fd81f703ae9 (diff)
downloadbfs-8c06e033483215e5148bc803b61207b99d458a48.tar.xz
tests/bfs/help: Use ... && fail instead of ! ...
! false doesn't trigger an error with set -e.
Diffstat (limited to 'tests')
-rw-r--r--tests/bfs/help.sh8
-rw-r--r--tests/bsd/f_incomplete.sh1
2 files changed, 4 insertions, 5 deletions
diff --git a/tests/bfs/help.sh b/tests/bfs/help.sh
index 2c0b28a..ec53867 100644
--- a/tests/bfs/help.sh
+++ b/tests/bfs/help.sh
@@ -1,4 +1,4 @@
-! invoke_bfs -help | grep -E '\{...?\}'
-! invoke_bfs -D help | grep -E '\{...?\}'
-! invoke_bfs -S help | grep -E '\{...?\}'
-! invoke_bfs -regextype help | grep -E '\{...?\}'
+invoke_bfs -help | grep -E '\{...?\}' && fail
+invoke_bfs -D help | grep -E '\{...?\}' && fail
+invoke_bfs -S help | grep -E '\{...?\}' && fail
+invoke_bfs -regextype help | grep -E '\{...?\}' && fail
diff --git a/tests/bsd/f_incomplete.sh b/tests/bsd/f_incomplete.sh
index 50afe42..0dfb19f 100644
--- a/tests/bsd/f_incomplete.sh
+++ b/tests/bsd/f_incomplete.sh
@@ -1,2 +1 @@
! invoke_bfs -f
-