diff options
author | EuAndreh <eu@euandre.org> | 2021-03-10 03:54:17 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-03-10 03:54:17 -0300 |
commit | 5361a43674bac61606816583a2e4097322f1f52a (patch) | |
tree | 5de7cea71dc6c1cdf496c68867fe9494d05cea28 /tests/cli-opts.sh | |
parent | TODOs.md: Add #task-2c3021db-7ede-c835-691a-af240c11f883 (diff) | |
download | remembering-5361a43674bac61606816583a2e4097322f1f52a.tar.gz remembering-5361a43674bac61606816583a2e4097322f1f52a.tar.xz |
tests/cli-opts.sh: Use assert_grep_stream
Diffstat (limited to '')
-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 } |