gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 156/256: runtests.pl: support attribute "nonewline"


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 156/256: runtests.pl: support attribute "nonewline" in part verify/upload.
Date: Fri, 06 Oct 2017 19:44:07 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 3bbe894fd26114e6835c697008b61beeffd084bf
Author: Patrick Monnerat <address@hidden>
AuthorDate: Tue Sep 5 17:10:05 2017 +0100

    runtests.pl: support attribute "nonewline" in part verify/upload.
---
 tests/runtests.pl | 7 +++++++
 1 file changed, 7 insertions(+)

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

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]