diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-10-23 13:34:33 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-10-23 13:34:33 -0400 |
commit | 8c06e033483215e5148bc803b61207b99d458a48 (patch) | |
tree | 95d6043e86bb1d0a5d72fa77b924827654911772 /tests/bfs | |
parent | d2d5e5ad2e4b61493d27bfe8c9341fd81f703ae9 (diff) | |
download | bfs-8c06e033483215e5148bc803b61207b99d458a48.tar.xz |
tests/bfs/help: Use ... && fail instead of ! ...
! false doesn't trigger an error with set -e.
Diffstat (limited to 'tests/bfs')
-rw-r--r-- | tests/bfs/help.sh | 8 |
1 files changed, 4 insertions, 4 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 |