summaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2017-09-02 12:55:28 +0100
committerPatrick Monnerat <patrick@monnerat.net>2017-09-02 12:55:28 +0100
commitf0cda34145bd134f8d92b4ec76d4c1dd606263ec (patch)
treeab65aa100cd9a3f6eae40a57fe1a122ae9d64e08 /tests/runtests.pl
parent6869d65f548b264725218f21cdf6443d26938e6f (diff)
downloadcurl-f0cda34145bd134f8d92b4ec76d4c1dd606263ec.tar.gz
runtests.pl: Apply strippart to upload too.
This will allow substitution of boundaries in mail messages.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 645db3939..5ffd8e7b0 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -4289,6 +4289,17 @@ sub singletest {
if(@upload) {
# verify uploaded data
my @out = loadarray("$LOGDIR/upload.$testnum");
+
+ # what parts to cut off from the upload
+ my @strippart = getpart("verify", "strippart");
+ my $strip;
+ for $strip (@strippart) {
+ chomp $strip;
+ for(@out) {
+ eval $strip;
+ }
+ }
+
$res = compare($testnum, $testname, "upload", \@out, \@upload);
if ($res) {
return 1;