diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2017-09-05 17:10:05 +0100 |
---|---|---|
committer | Patrick Monnerat <patrick@monnerat.net> | 2017-09-05 17:33:16 +0100 |
commit | 3bbe894fd26114e6835c697008b61beeffd084bf (patch) | |
tree | 2f9863317ca6fac415737d9171561f53f08b1b59 /tests/runtests.pl | |
parent | 328ce03d5311e0b4d667a5202b7ed9af162b4509 (diff) |
runtests.pl: support attribute "nonewline" in part verify/upload.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-x | tests/runtests.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 7d260afcf..e3cf2bff8 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -3755,6 +3755,13 @@ sub singletest { # if this section exists, we verify upload my @upload = getpart("verify", "upload"); + if(@upload) { + my %hash = getpartattr("verify", "upload"); + if($hash{'nonewline'}) { + # cut off the final newline from the final line of the upload data + chomp($upload[$#upload]); + } + } # if this section exists, it might be FTP server instructions: my @ftpservercmd = getpart("reply", "servercmd"); |