gpsd-dev
[Top][All Lists]
Advanced

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

[gpsd-dev] [PATCH 1/3] Adds test name to regress-driver success message


From: Fred Wright
Subject: [gpsd-dev] [PATCH 1/3] Adds test name to regress-driver success message in single -q mode.
Date: Thu, 3 Mar 2016 19:01:02 -0800

When running parallelized daemon tests, the output includes many
identical success messages that don't indicate which particular test
completed.  This change causes the logfile names to be reported in
that case.  It only applies to a successful run with the -q option,
where exactly one test was run and it wasn't "not found".

TESTED:
Ran the complete set of regression tests in parallel mode, as well as
manual cases both with and without -q with both one and two tests
specified.
---
 regress-driver | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/regress-driver b/regress-driver
index 62f1e16..e64bc30 100755
--- a/regress-driver
+++ b/regress-driver
@@ -172,7 +172,12 @@ case $mode in
             echo 
"================================================================"
             status=1;
         else
-            echo "Regression test successful: no errors in $total tests 
($notfound not found).";
+            if [ $quiet = true ] && [ $total -eq 1 ] && [ $notfound -eq 0 ]
+            then
+                echo "Regression test $1 successful"
+            else
+                echo "Regression test successful: no errors in $total tests 
($notfound not found).";
+            fi
             status=0;
         fi
         ;;
-- 
2.7.2




reply via email to

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