Skip to content

Commit

Permalink
tests/bfs/help: Use ... && fail instead of ! ...
Browse files Browse the repository at this point in the history
! false doesn't trigger an error with set -e.
  • Loading branch information
tavianator committed Oct 23, 2023
1 parent d2d5e5a commit 8c06e03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/bfs/help.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion tests/bsd/f_incomplete.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
! invoke_bfs -f

0 comments on commit 8c06e03

Please sign in to comment.