mirror of
https://github.com/curl/curl.git
synced 2026-05-04 22:59:57 +03: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
1 changed files with 11 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue