From fac0764621b46b5e6d0569d0554cfb13f81de325 Mon Sep 17 00:00:00 2001 From: David Given Date: Sat, 23 Jun 2018 11:14:40 +0200 Subject: [PATCH] Don't crash and burn if there are no tests to run. --- first/testsummary.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/first/testsummary.sh b/first/testsummary.sh index 2aca1d225..20cdc66ae 100755 --- a/first/testsummary.sh +++ b/first/testsummary.sh @@ -1,6 +1,11 @@ #!/bin/sh echo "" +if [ "$1" = "" ]; then + echo "No tests." + exit 0 +fi + succeeding="$(find "$@" -size 0)" notsucceeding="$(find "$@" ! -size 0)" if [ "$notsucceeding" != "" ]; then