diff options
author | Fred Wright <fw@fwright.net> | 2016-03-03 16:44:46 -0800 |
---|---|---|
committer | Jon Schlueter <jon.schlueter@gmail.com> | 2016-03-03 23:00:40 -0500 |
commit | 47e4b4b7c0f50a1b9d961b74970f67966d9ce0fb (patch) | |
tree | d9f4494a0276e7a1d8f2f42cb02b47c909219272 /regress-driver | |
parent | f4023104cc2946d4bc1d8d38b92b79eebb587e2b (diff) | |
download | gpsd-47e4b4b7c0f50a1b9d961b74970f67966d9ce0fb.tar.gz |
Adds test name to regress-driver success message in single -q mode.
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.
Signed-off-by: Jon Schlueter <jon.schlueter@gmail.com>
Diffstat (limited to 'regress-driver')
-rwxr-xr-x | regress-driver | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/regress-driver b/regress-driver index 62f1e16d..e64bc304 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 ;; |