summaryrefslogtreecommitdiffstats
path: root/test/import.test
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2019-03-14 16:46:50 +0100
committerJean Delvare <jdelvare@suse.de>2019-03-14 16:46:50 +0100
commitb5608285e9f430d51498e70bf37c1bf8520fb1c0 (patch)
tree6ebe1848a619d92751f58a26fa0ba27ee0e1a09c /test/import.test
parentcb1c50af1792ea482857d82dec825e4312657410 (diff)
downloadquilt-b5608285e9f430d51498e70bf37c1bf8520fb1c0.tar.gz
test: Don't hard-code .pc
Use a variable (QUILT_PC) instead of hard-coding ".pc" as the name of the directory where quilt stores the state of the working tree throughout the test suite. We still set that variable to ".pc" to make it easier to investigate failed test cases, but at least this allows us to promptly test that QUILT_PC can actually be set to any other value and quilt still works. Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'test/import.test')
-rw-r--r--test/import.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/import.test b/test/import.test
index dd4247a..e9cc85b 100644
--- a/test/import.test
+++ b/test/import.test
@@ -43,7 +43,7 @@
$ mv patches/patchRp0.diff t/patchRp0.diff
# test importing into an empty series
- $ rm -rf patches/ .pc/
+ $ rm -rf patches/ %{QUILT_PC}/
$ mkdir patches
$ quilt import t/patch1.diff
> Importing patch t/patch1.diff (stored as %{P}patch1.diff)
@@ -157,7 +157,7 @@
> Patch patch1.diff is not in series
# test importing a reverse patch
- $ rm -rf patches/ .pc/
+ $ rm -rf patches/ %{QUILT_PC}/
$ mkdir patches
$ quilt import -R t/patchR.diff
> Importing patch t/patchR.diff (stored as %{P}patchR.diff)
@@ -194,7 +194,7 @@
> No patches applied
# test importing a reverse patch with strip level
- $ rm -rf patches/ .pc/
+ $ rm -rf patches/ %{QUILT_PC}/
$ mkdir patches
$ quilt import -R -p0 t/patchRp0.diff
> Importing patch t/patchRp0.diff (stored as %{P}patchRp0.diff)
@@ -226,7 +226,7 @@
> No patches applied
# Test importing multiple patches at once
- $ rm -rf patches/ .pc/
+ $ rm -rf patches/ %{QUILT_PC}/
$ mkdir patches
$ quilt import t/patch1.diff t/patchR.diff
> Importing patch t/patch1.diff (stored as %{P}patch1.diff)
@@ -236,7 +236,7 @@
> patch1.diff
> patchR.diff
- $ rm -rf patches/ .pc/
+ $ rm -rf patches/ %{QUILT_PC}/
$ mkdir patches
$ quilt import t/patchR.diff
> Importing patch t/patchR.diff (stored as %{P}patchR.diff)