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/project-settings.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/project-settings.test')
-rw-r--r-- | test/project-settings.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/project-settings.test b/test/project-settings.test index 0f6ba3f..c012253 100644 --- a/test/project-settings.test +++ b/test/project-settings.test @@ -3,10 +3,10 @@ $ export QUILT_PATCHES=my_patches $ export QUILT_SERIES=my_series $ mkdir quilt_patches -$ mkdir .pc -$ echo 2 > .pc/.version -$ echo quilt_patches > .pc/.quilt_patches -$ echo quilt_series > .pc/.quilt_series +$ mkdir %{QUILT_PC} +$ echo 2 > %{QUILT_PC}/.version +$ echo quilt_patches > %{QUILT_PC}/.quilt_patches +$ echo quilt_series > %{QUILT_PC}/.quilt_series $ echo create.patch > quilt_patches/quilt_series $ cat > quilt_patches/create.patch |