From: Patrick Monnerat Date: Tue, 5 Sep 2017 16:10:05 +0000 (+0100) Subject: runtests.pl: support attribute "nonewline" in part verify/upload. X-Git-Tag: curl-7_56_0~99 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3bbe894fd26114e6835c697008b61beeffd084bf;p=thirdparty%2Fcurl.git runtests.pl: support attribute "nonewline" in part verify/upload. --- diff --git a/tests/runtests.pl b/tests/runtests.pl index 7d260afcf7..e3cf2bff8f 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");