From d56d26b559dd2923928afd8de32356bd8626505f Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Fri, 14 Nov 2014 14:34:30 +0100 Subject: [PATCH] Test runner's exit code reports number of failures. --- test/test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test b/test/test index 85f7df4..cac537b 100755 --- a/test/test +++ b/test/test @@ -1,7 +1,5 @@ #!/usr/bin/env bash -# TODO: exit with non-zero status code when tests fail. - # Clean up. rm -f *.actual @@ -42,3 +40,5 @@ echo "$((count_ok + count_fail)) tests" echo "$count_ok ok" echo "$count_fail failed" +exit $count_fail +