summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-12-07 05:20:14 +0100
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2016-01-26 01:17:41 +0100
commitfc91cbab11d43a7d241297886665b9a5f94a1e47 (patch)
tree74aeec7e93acf6e872ab6f96d0187d96f9a50479 /tools/testing
parentrcutorture: Add checks for rcutorture writer starvation (diff)
downloadlinux-fc91cbab11d43a7d241297886665b9a5f94a1e47.tar.xz
linux-fc91cbab11d43a7d241297886665b9a5f94a1e47.zip
rcutorture: Don't keep empty console.log.diags files
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>
Diffstat (limited to 'tools/testing')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/parse-console.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/parse-console.sh b/tools/testing/selftests/rcutorture/bin/parse-console.sh
index 0f1520fb5f81..c6b0e46214f2 100755
--- a/tools/testing/selftests/rcutorture/bin/parse-console.sh
+++ b/tools/testing/selftests/rcutorture/bin/parse-console.sh
@@ -70,4 +70,6 @@ then
summary="$summary Stalls: $n_stalls"
fi
print_warning Summary: $summary
+else
+ rm $1.diags
fi