From: Patrick Monnerat Date: Sat, 2 Sep 2017 11:55:28 +0000 (+0100) Subject: runtests.pl: Apply strippart to upload too. X-Git-Tag: curl-7_56_0~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0cda34145bd134f8d92b4ec76d4c1dd606263ec;p=curl runtests.pl: Apply strippart to upload too. This will allow substitution of boundaries in mail messages. --- 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;