Skip to contentSkip to conversation

t3701: ensure correctly set up repository after skipped tests

PATCH In review Johannes Sixt 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 t3701: ensure correctly set up repository after skipped tests

From: Johannes Sixt <[email protected]>

There are two tests that are skipped if file modes are not obeyed by the file system. In this case, the subsequent test failed because the repository was in an unexpected state. This corrects it.

---
 t/t3701-add-interactive.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
t/t3701-add-interactive.sh +6 -0
index 5cdb83d..fd2a55a 100755
@@ -165,6 +165,12 @@ test_expect_success FILEMODE 'stage mode but
 
 # end of tests disabled when filemode is not usable
 
+test_expect_success 'setup again' '
+	git reset --hard &&
+	test_chmod +x file &&
+	echo content >>file
+'
+
 # Write the patch file with a new line at the top and bottom
 cat >patch <<EOF
 index 180b47c..b6f2c08 100644
Signature · 1 line
1.6.3.1.1240.gc4fde