tests: use 'test_must_be_empty' instead of 'test ! -s'
[gitweb.git] / t / t7030-verify-tag.sh
index 291a1e2b07417559d3f3defd6a60043b505eb3c7..1f068714c5dd36b61158342af30152b133e2c842 100755 (executable)
@@ -134,9 +134,8 @@ test_expect_success GPG 'verifying tag with --format' '
 '
 
 test_expect_success GPG 'verifying a forged tag with --format should fail silently' '
-       >expect &&
        test_must_fail git verify-tag --format="tagname : %(tag)" $(cat forged1.tag) >actual-forged &&
-       test_cmp expect actual-forged
+       test_must_be_empty actual-forged
 '
 
 test_done