]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3302-notes-index-expensive.sh
Merge branch 'gc/branch-recurse-submodules-fix'
[thirdparty/git.git] / t / t3302-notes-index-expensive.sh
index bc9d8ee1e6a8b223f084cdc405a52048630ba5b1..bb5fea02a03a563a23e806d80dbb88a673c40802 100755 (executable)
@@ -8,7 +8,6 @@ test_description='Test commit notes index (expensive!)'
 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
-TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 create_repo () {
@@ -65,7 +64,8 @@ create_repo () {
 test_notes () {
        count=$1 &&
        git config core.notesRef refs/notes/commits &&
-       git log | grep "^    " >output &&
+       git log >tmp &&
+       grep "^    " tmp >output &&
        i=$count &&
        while test $i -gt 0
        do
@@ -90,7 +90,7 @@ write_script time_notes <<\EOF
                        unset GIT_NOTES_REF
                        ;;
                esac
-               git log
+               git log || exit $?
                i=$(($i+1))
        done >/dev/null
 EOF