mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
runtests.pl: Apply strippart to upload too.
This will allow substitution of boundaries in mail messages.
This commit is contained in:
parent
6869d65f54
commit
f0cda34145
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user