diff options
Diffstat (limited to 'tests/cli-opts.sh')
-rwxr-xr-x | tests/cli-opts.sh | 7 |
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 } |