1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

runtests.pl: Apply strippart to upload too.

This will allow substitution of boundaries in mail messages.
This commit is contained in:
Patrick Monnerat 2017-09-02 12:55:28 +01:00
parent 6869d65f54
commit f0cda34145

View File

@ -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;