diff options
author | Jean Delvare <jdelvare@suse.de> | 2019-03-14 16:46:50 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2019-03-14 16:46:50 +0100 |
commit | b5608285e9f430d51498e70bf37c1bf8520fb1c0 (patch) | |
tree | 6ebe1848a619d92751f58a26fa0ba27ee0e1a09c /test/patch-wrapper.test | |
parent | cb1c50af1792ea482857d82dec825e4312657410 (diff) | |
download | quilt-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/patch-wrapper.test')
-rw-r--r-- | test/patch-wrapper.test | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/patch-wrapper.test b/test/patch-wrapper.test index 69b41d1..8bc8183 100644 --- a/test/patch-wrapper.test +++ b/test/patch-wrapper.test @@ -15,7 +15,7 @@ $ patch-wrapper -s -p0 < foo.diff $ quilt pop -q > Removing patch %{P}foo.diff > No patches applied -$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc} +$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-%{QUILT_PC}} $ mkdir ${QUILT_PATCHES:-patches} $ patch-wrapper --backup -B xxx/ -s -p0 < foo.diff @@ -24,14 +24,14 @@ $ find xxx -type f $ quilt pop -q > Removing patch %{P}foo.diff > No patches applied -$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc} +$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-%{QUILT_PC}} $ mkdir ${QUILT_PATCHES:-patches} $ patch-wrapper -s -p0 -i foo.diff $ quilt pop -q > Removing patch %{P}foo.diff > No patches applied -$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc} +$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-%{QUILT_PC}} $ mkdir ${QUILT_PATCHES:-patches} $ patch-wrapper -p0 < foo.diff @@ -39,7 +39,7 @@ $ patch-wrapper -p0 < foo.diff $ quilt pop -q > Removing patch %{P}foo.diff > No patches applied -$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc} +$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-%{QUILT_PC}} $ mv foo.diff somewhere/ $ mkdir ${QUILT_PATCHES:-patches} @@ -48,7 +48,7 @@ $ patch-wrapper -p0 < somewhere/foo.diff $ quilt pop -q > Removing patch %{P}somewhere/foo.diff > No patches applied -$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc} +$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-%{QUILT_PC}} $ mkdir ${QUILT_PATCHES:-patches} $ patch-wrapper -p0 -i somewhere/foo.diff @@ -56,7 +56,7 @@ $ patch-wrapper -p0 -i somewhere/foo.diff $ quilt pop -q > Removing patch %{P}somewhere/foo.diff > No patches applied -$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc} +$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-%{QUILT_PC}} $ sed -e 's/5/5b/' foo > foo.new $ mv foo.new foo @@ -73,4 +73,4 @@ $ cat foo.orig $ quilt pop -q > Removing patch %{P}somewhere/foo.diff > No patches applied -$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc} +$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-%{QUILT_PC}} |