diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-27 23:33:43 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-27 23:33:43 +0200 |
commit | 986c5181071ce3aac42d0aaeb7bd691a1a0bdf4a (patch) | |
tree | 4ef3f9805cfdbf3b4496cb720a94c138df034204 /t/t1411-reflog-show.sh | |
parent | Merge branch 'rs/opt-updates' (diff) | |
parent | tests: use 'test_must_be_empty' instead of 'test_cmp <empty> <out>' (diff) | |
download | git-986c5181071ce3aac42d0aaeb7bd691a1a0bdf4a.tar.xz git-986c5181071ce3aac42d0aaeb7bd691a1a0bdf4a.zip |
Merge branch 'sg/test-must-be-empty'
Test fixes.
* sg/test-must-be-empty:
tests: use 'test_must_be_empty' instead of 'test_cmp <empty> <out>'
tests: use 'test_must_be_empty' instead of 'test_cmp /dev/null <out>'
tests: use 'test_must_be_empty' instead of 'test ! -s'
tests: use 'test_must_be_empty' instead of '! test -s'
Diffstat (limited to 't/t1411-reflog-show.sh')
-rwxr-xr-x | t/t1411-reflog-show.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/t/t1411-reflog-show.sh b/t/t1411-reflog-show.sh index 4d62ceef9c..985daf1def 100755 --- a/t/t1411-reflog-show.sh +++ b/t/t1411-reflog-show.sh @@ -136,13 +136,12 @@ test_expect_success '--date magic does not override explicit @{0} syntax' ' test_cmp expect actual ' -: >expect test_expect_success 'empty reflog file' ' git branch empty && git reflog expire --expire=all refs/heads/empty && git log -g empty >actual && - test_cmp expect actual + test_must_be_empty actual ' # This guards against the alternative of showing the diffs vs. the |