rcutorture: Don't keep empty console.log.diags files
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 7 Dec 2015 04:20:14 +0000 (20:20 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 26 Jan 2016 00:17:41 +0000 (16:17 -0800)
Currently, an error-free run produces an empty console.log.diags file.
This can be annoying when using "vi */console.log.diags" to see a full
summary of the errors.  This commit therefore removes any empty files
during the analysis process.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
tools/testing/selftests/rcutorture/bin/parse-console.sh

index 0f1520fb5f817e7d7431550aeacf76b5580c44ac..c6b0e46214f2eccf87177cf255fd8b4c0ccd5b3c 100755 (executable)
@@ -70,4 +70,6 @@ then
                summary="$summary  Stalls: $n_stalls"
        fi
        print_warning Summary: $summary
+else
+       rm $1.diags
 fi