From 7c1b536c6c7024f890bf0d9126394d7e7ba4556e Mon Sep 17 00:00:00 2001 From: Henk Langeveld Date: Mon, 20 Apr 2015 00:18:49 +0200 Subject: [PATCH] Stop checking status of a shpec file. Except for an example test, `shpec` itself does not check the results of a sourced file. --- bin/shpec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/shpec b/bin/shpec index 0769c46..d5b8b7d 100755 --- a/bin/shpec +++ b/bin/shpec @@ -21,9 +21,9 @@ describe() { end() { : $((test_indent -= 1)) - if [ $test_indent -eq 0 ]; then - [ $failures -eq 0 ] - fi + [ $test_indent -ge 0 ] && return + printf -u 2 "Syntax Error in ${_shpec_file} file\n" + exit 1 } end_describe() {