]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4014-format-patch.sh
Merge branch 'gc/branch-recurse-submodules-fix'
[thirdparty/git.git] / t / t4014-format-patch.sh
index eefe815fca8e31ef2f9010cbb4c4749ee365deb2..7dc5a5c736e3f2db0c4bc29c20321b6a386661df 100755 (executable)
@@ -325,7 +325,7 @@ test_expect_success 'filename length limit' '
                max=$(
                        for patch in 000[1-9]-*.patch
                        do
-                               echo "$patch" | wc -c
+                               echo "$patch" | wc -c || exit 1
                        done |
                        sort -nr |
                        head -n 1
@@ -343,7 +343,7 @@ test_expect_success 'filename length limit from config' '
                max=$(
                        for patch in 000[1-9]-*.patch
                        do
-                               echo "$patch" | wc -c
+                               echo "$patch" | wc -c || exit 1
                        done |
                        sort -nr |
                        head -n 1
@@ -361,7 +361,7 @@ test_expect_success 'filename limit applies only to basename' '
                max=$(
                        for patch in patches/000[1-9]-*.patch
                        do
-                               echo "${patch#patches/}" | wc -c
+                               echo "${patch#patches/}" | wc -c || exit 1
                        done |
                        sort -nr |
                        head -n 1