aboutsummaryrefslogtreecommitdiff
path: root/tests/cli-opts.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtests/cli-opts.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/cli-opts.sh b/tests/cli-opts.sh
index 268a649..a85644e 100755
--- a/tests/cli-opts.sh
+++ b/tests/cli-opts.sh
@@ -123,11 +123,8 @@ test_version_flags() {
STATUS=$?
assert_status 0
assert_empty_stderr
- if ! grep -Eq '^remembering-.+$' "$OUT"; then
- printf '\nERR: Bad STDOUT (%s)\n\nexpected: %s\ngot: %s\n' \
- "$OUT" '^remembering-.+$' "$(cat "$OUT")" >&2
- exit 1
- fi
+ assert_grep_stream "\$OUT" "$OUT" '^remembering-[0-9\.]+ [0-9-]+'
+
test_ok
}