summaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2017-09-05 17:10:05 +0100
committerPatrick Monnerat <patrick@monnerat.net>2017-09-05 17:33:16 +0100
commit3bbe894fd26114e6835c697008b61beeffd084bf (patch)
tree2f9863317ca6fac415737d9171561f53f08b1b59 /tests/runtests.pl
parent328ce03d5311e0b4d667a5202b7ed9af162b4509 (diff)
downloadcurl-3bbe894fd26114e6835c697008b61beeffd084bf.tar.gz
runtests.pl: support attribute "nonewline" in part verify/upload.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl7
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");