summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2015-02-25 11:54:06 +0100
committerJean Delvare <jdelvare@suse.de>2015-02-25 11:54:06 +0100
commit330af1bbabb2673a918e1db4192331cbfc5c0f4e (patch)
tree7669708be49473312284509efd0917fd63cf3920
parenta294ea1700acca8f2f737b5ee89f94825980a319 (diff)
downloadquilt-330af1bbabb2673a918e1db4192331cbfc5c0f4e.tar.gz
symlink.test: Make the test more robust
"mv" may or may not overwrite a read-only file by default, depending on whether or not it is considered to be interactive. Removing the file explicitly before avoids that uncertainty and makes it easier to play the test case manually.
-rw-r--r--test/symlink.test1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/symlink.test b/test/symlink.test
index 51a81f2..a9fa45a 100644
--- a/test/symlink.test
+++ b/test/symlink.test
@@ -73,6 +73,7 @@
> +foo changed 4
# Test the refresh --backup when target is read-only
+ $ rm -f test.diff
$ mv patches/test.diff .
$ ln -s ../test.diff patches/test.diff
$ chmod -w test.diff