]> granicus.if.org Git - curl/commitdiff
runtests.pl: Apply strippart to upload too.
authorPatrick Monnerat <patrick@monnerat.net>
Sat, 2 Sep 2017 11:55:28 +0000 (12:55 +0100)
committerPatrick Monnerat <patrick@monnerat.net>
Sat, 2 Sep 2017 11:55:28 +0000 (12:55 +0100)
This will allow substitution of boundaries in mail messages.

tests/runtests.pl

index 645db3939c6e241c6761dad866391e642da6404b..5ffd8e7b0de625acb06e4457abe935f632aeda3e 100755 (executable)
@@ -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;