]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5504-fetch-receive-strict.sh
add "ok=sigpipe" to test_must_fail and use it to fix flaky tests
[thirdparty/git.git] / t / t5504-fetch-receive-strict.sh
index 44f3d5fb284e9848180df9ed9cfbc44a91762277..89224edcc582e6610fdefd63a8d40048bfe10da0 100755 (executable)
@@ -100,7 +100,7 @@ test_expect_success 'push with receive.fsckobjects' '
                git config receive.fsckobjects true &&
                git config transfer.fsckobjects false
        ) &&
-       test_must_fail git push --porcelain dst master:refs/heads/test >act &&
+       test_must_fail ok=sigpipe git push --porcelain dst master:refs/heads/test >act &&
        test_cmp exp act
 '
 
@@ -111,8 +111,7 @@ test_expect_success 'push with transfer.fsckobjects' '
                cd dst &&
                git config transfer.fsckobjects true
        ) &&
-       test_must_fail git push --porcelain dst master:refs/heads/test >act &&
-       test_cmp exp act
+       test_must_fail ok=sigpipe git push --porcelain dst master:refs/heads/test >act
 '
 
 cat >bogus-commit <<\EOF