From 114f9c876d441a6aff99e295942e0a296505634f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 8 Mar 2016 00:25:14 +0000 Subject: [PATCH] Detect if the debug buffer exists before displaying it in test runner --- test/run | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/run b/test/run index fc661eb0..7fa78172 100755 --- a/test/run +++ b/test/run @@ -75,9 +75,11 @@ main() { echo "$line" | colorize $color normal done echo - echo "debug buffer:" | colorize yellow normal - cat debug - echo + if test -e debug; then + echo "debug buffer:" | colorize yellow normal + cat debug + echo + fi fi done fi