[PATCH] t3200: fix failure on case-insensitive filesystems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



62d94a3a (t3200: Add test demonstrating minor regression in 41c21f2;
2013-09-08) introduced a test which creates a directory named 'a',
however, on case-insensitive filesystems, this action fails with a
"fatal: cannot mkdir a: File exists" error due to a file named 'A' left
over from earlier tests. Resolve this problem.

Signed-off-by: Eric Sunshine <sunshine@xxxxxxxxxxxxxx>
---

This applies against 'next'.

There are many ways to resolve this failure.  I chose one in which the
test arranges a clean slate for itself before performing the important
operations.

 t/t3200-branch.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index 84fcbf4..0fe7647 100755
--- a/t/t3200-branch.sh
+++ b/t/t3200-branch.sh
@@ -873,6 +873,7 @@ test_expect_success '--merged catches invalid object names' '
 '
 
 test_expect_success 'tracking with unexpected .fetch refspec' '
+	rm -rf a b c d &&
 	git init a &&
 	(
 		cd a &&
-- 
1.8.4.535.g7b94f8e

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]