t7508: don't use `test_must_fail test_cmp`
commite8a5f07d51c5a3081ec65a011681b643ae97b000
authorDenton Liu <liu.denton@gmail.com>
Mon, 20 Apr 2020 08:54:41 +0000 (20 04:54 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Apr 2020 20:12:13 +0000 (20 13:12 -0700)
treeadd1107b59037943779ae312019fd701e5e0fd10
parent4cf795b842f37b56fae09c3412f3c59c370c392d
t7508: don't use `test_must_fail test_cmp`

The test_must_fail function should only be used for git commands since
we assume that external commands work sanely. Since test_cmp() just
wraps an external command, replace `test_must_fail test_cmp` with
`! test_cmp`.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7508-status.sh