Преглед изворни кода

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>
Paul E. McKenney пре 10 година
родитељ
комит
fc91cbab11
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      tools/testing/selftests/rcutorture/bin/parse-console.sh

+ 2 - 0
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