diff options
author | Jean Delvare <jdelvare@suse.de> | 2017-05-09 16:54:48 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2017-05-09 16:54:48 +0200 |
commit | 1d8867cd1fac531f576ad3a9a7eea4eef3ab8ed0 (patch) | |
tree | 727c431232cd03769b62b58372b1c937e4275b1e /test/mail.test | |
parent | ce137ed78de177a92a867979cdea8aabc9e43a32 (diff) | |
download | quilt-1d8867cd1fac531f576ad3a9a7eea4eef3ab8ed0.tar.gz |
test: Consistently use %{P} and %{_P}
There is no point in defining P and _P in the Makefile to allow for
QUILT_PATCHES_PREFIX to be set or unset if we do not use these
variables consistently in the test suite. Replace hardcoded
"patches/" with %{P} or %{_P} throughout the test suite wherever
relevant so that unsetting QUILT_PATCHES_PREFIX in test.quiltrc
actually works.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'test/mail.test')
-rw-r--r-- | test/mail.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mail.test b/test/mail.test index 735a983..762854b 100644 --- a/test/mail.test +++ b/test/mail.test @@ -11,7 +11,7 @@ $ cat no-subject > patches/1.diff $ ls patches/ > series $ quilt mail --mbox mbox --prefix "test" --subject "This is a test" -m "Message" - > Unable to extract a subject header from patches/1.diff + > Unable to extract a subject header from %{P}1.diff $ cat - no-subject > patches/1.diff < Subject: Subject of 1.diff @@ -59,13 +59,13 @@ # Test 3 duplicate headers $ ls patches/ > series $ quilt mail --mbox mbox --prefix "test" --subject "This is a test" -m "Message" - > Patches patches/1.diff, patches/5.diff, patches/6.diff have duplicate subject headers. + > Patches %{P}1.diff, %{P}5.diff, %{P}6.diff have duplicate subject headers. # Test 2 duplicate headers $ rm patches/6.diff $ ls patches/ > series $ quilt mail --mbox mbox --prefix "test" --subject "This is a test" -m "Message" - > Patches patches/1.diff, patches/5.diff have duplicate subject headers. + > Patches %{P}1.diff, %{P}5.diff have duplicate subject headers. $ cat - no-subject > patches/5.diff < Aw: [patch] Fwd: Re: [patch 5/7] Fw: Subject of 5.diff |