summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2012-10-25 17:42:46 +0200
committerJean Delvare <jdelvare@suse.de>2012-10-25 17:42:46 +0200
commit4137fa7e488cd00c0889f0c6a3cadb36431de4f4 (patch)
tree5cab8df8528dd3a9ecb67b245128c85515b108f1 /test
parente7fa08b805942be26bbce1d3f93e5a3729a95ac0 (diff)
downloadquilt-4137fa7e488cd00c0889f0c6a3cadb36431de4f4.tar.gz
setup: Check for existing directories before unpacking
Check for existing directories before unpacking.
Diffstat (limited to 'test')
-rw-r--r--test/setup.test7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/setup.test b/test/setup.test
index b52614c..19c3c2d 100644
--- a/test/setup.test
+++ b/test/setup.test
@@ -64,12 +64,17 @@ $ quilt push -qa
$ cd ../..
$ rm -rf "dir"
-# Now test the case where the tarball contains a patches directory
+# Now test the cases where the directory already exists, or the tarball
+# contains a patches directory
$ cat > series_with_patches
< # Source: dir_with_patches.tar.gz
< # Patchdir: dir
< #
< foo.diff
+$ mkdir dir
+$ quilt setup series_with_patches
+> Directory dir exists
+$ rmdir dir
$ quilt setup series_with_patches
> Unpacking archive dir_with_patches.tar.gz
> Directory dir/patches exists