summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2006-02-11 13:35:50 +0000
committerAndreas Gruenbacher <agruen@suse.de>2006-02-11 13:35:50 +0000
commit31ccf04858b6a780802800e69100399f88288b36 (patch)
tree231f0c3cbfb50bbdd54537099e80f609d734f991 /test
parent43dd5be8775682a86f0835653497b5d707b00cf4 (diff)
downloadquilt-31ccf04858b6a780802800e69100399f88288b36.tar.gz
- quilt/scripts/patchfns.in: Fix bug in quilt_command when working
in subdirectories. - Add testcase test/edit.test to catch this kind of bug.
Diffstat (limited to 'test')
-rw-r--r--test/edit.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/edit.test b/test/edit.test
new file mode 100644
index 0000000..5cc5dba
--- /dev/null
+++ b/test/edit.test
@@ -0,0 +1,20 @@
+$ rm -rf d
+$ mkdir -p d/patches d/subdir
+$ cd d
+
+$ cat > editor
+< #! /bin/sh
+< echo Editing $1
+< echo foo > $1
+$ chmod +x editor
+$ export EDITOR=%PWD/editor
+
+$ quilt new patch
+> Patch patches/patch is now on top
+$ cd subdir
+$ quilt edit foo
+> File subdir/foo added to patch ../patches/patch
+> Editing foo
+
+$ cd ../..
+$ rm -rf d