gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 246/411: runtests: return error if no tests ran


From: gnunet
Subject: [gnurl] 246/411: runtests: return error if no tests ran
Date: Wed, 13 Jan 2021 01:21:01 +0100

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

nikita pushed a commit to branch master
in repository gnurl.

commit 88bf689f94bc5717f1826192fbe2bea252804bcb
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Thu Oct 8 00:13:07 2020 +0200

    runtests: return error if no tests ran
    
    ... and make TESTFAIL stand out a little better by adding newlines
    before and after.
    
    Reported-by: Marc Hörsken
    Issue: #6052
    Closes #6053
---
 tests/runtests.pl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/runtests.pl b/tests/runtests.pl
index 84feb73e0..b962f1646 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -5775,11 +5775,11 @@ if($total) {
                    $ok/$total*100);
 
     if($ok != $total) {
-        logmsg "TESTFAIL: These test cases failed: $failed\n";
+        logmsg "\nTESTFAIL: These test cases failed: $failed\n\n";
     }
 }
 else {
-    logmsg "TESTFAIL: No tests were performed\n";
+    logmsg "\nTESTFAIL: No tests were performed\n\n";
 }
 
 if($all) {
@@ -5816,6 +5816,6 @@ if($skipped && !$short) {
     }
 }
 
-if($total && (($ok+$ign) != $total)) {
+if(($total && (($ok+$ign) != $total)) || !$total) {
     exit 1;
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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