runtests.pl: support attribute "nonewline" in part verify/upload.

This commit is contained in:
Patrick Monnerat 2017-09-05 17:10:05 +01:00
parent 328ce03d53
commit 3bbe894fd2
1 changed files with 7 additions and 0 deletions

View File

@ -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");