diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2018-07-27 17:48:11 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-30 11:18:41 -0700 |
commit | d3c6751b18170276f80e3578d16877d43ad22709 (patch) | |
tree | 6fbc19983489ba653109c8bee1b47d95254e7027 /t/t9001-send-email.sh | |
parent | ffc6fa0e396238de3a30623912980263b4f283ab (diff) | |
download | git-d3c6751b18170276f80e3578d16877d43ad22709.tar.gz |
tests: make use of the test_must_be_empty function
Change various tests that use an idiom of the form:
>expect &&
test_cmp expect actual
To instead use:
test_must_be_empty actual
The test_must_be_empty() wrapper was introduced in ca8d148daf ("test:
test_must_be_empty helper", 2013-06-09). Many of these tests have been
added after that time. This was mostly found with, and manually pruned
from:
git grep '^\s+>.*expect.* &&$' t
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9001-send-email.sh')
-rwxr-xr-x | t/t9001-send-email.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index 1da282c415..b734224494 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -253,10 +253,9 @@ test_suppress_self () { mv msgtxt1 msgtxt1-$3 && sed -e '/^$/q' msgtxt1-$3 >"msghdr1-$3" && - >"expected-no-cc-$3" && (grep '^Cc:' msghdr1-$3 >"actual-no-cc-$3"; - test_cmp expected-no-cc-$3 actual-no-cc-$3) + test_must_be_empty actual-no-cc-$3) } test_suppress_self_unquoted () { |