aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-05 13:05:06 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-05 13:05:06 (GMT)
commit400ec9e6eb156b0eea9112bf27e14f9ae493eedb (patch)
tree384608adac46e8337335de7837776ff042a10edb
parente649cc816c331de7ecdf7ffcc3aa9b268c7bf45f (diff)
test-media: improve the formatting of the summary
Add some newlines to make it easier to read. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rwxr-xr-xcontrib/test/test-media12
1 files changed, 9 insertions, 3 deletions
diff --git a/contrib/test/test-media b/contrib/test/test-media
index d28d4f7..465002c 100755
--- a/contrib/test/test-media
+++ b/contrib/test/test-media
@@ -118,16 +118,22 @@ fi
echo Summary:
echo
-grep 'Total' $tmp
-grep '^Total' $tmp | perl -e '
+grep 'Total' $tmp | perl -e '
while (<>) {
+ if (/Total/) {
+ print;
+ $added_nl = /^Grand/ || /\/dev\/cec/;
+ printf("\n") if $added_nl;
+ }
+ next unless /^Total/;
($succeeded, $failed, $warnings) = /Succeeded: (\d+), Failed: (\d+), Warnings: (\d+)/;
$tot_succeeded += $succeeded;
$tot_failed += $failed;
$tot_warnings += $warnings;
}
-printf("\nFinal Summary: %d, Succeeded: %d, Failed: %d, Warnings: %d\n",
+printf("\n") unless $added_nl;
+printf("Final Summary: %d, Succeeded: %d, Failed: %d, Warnings: %d\n",
$tot_succeeded + $tot_failed, $tot_succeeded, $tot_failed, $tot_warnings);
'

Privacy Policy