From f0cda34145bd134f8d92b4ec76d4c1dd606263ec Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Sat, 2 Sep 2017 12:55:28 +0100 Subject: runtests.pl: Apply strippart to upload too. This will allow substitution of boundaries in mail messages. --- tests/runtests.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; -- cgit v1.2.3