From 5a5e825213cca866fa23836a86932fb915f3ad71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Tvrd=C3=ADk?= Date: Tue, 28 Apr 2015 12:48:43 +0200 Subject: [PATCH] Birdtest: small change The number of build-failure tests must be equal to zero or upper --- tools/run_tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/run_tests.sh b/tools/run_tests.sh index 03c3e78c..f86289ad 100755 --- a/tools/run_tests.sh +++ b/tools/run_tests.sh @@ -51,7 +51,11 @@ num_all_tests_src=0 for dir in client conf filter lib misc nest proto sysdep; do for i in $(find "$srcdir/$dir" -name '*_test.c'); do num_all_tests_src=$((num_all_tests_src + 1)); done done + num_build_fail_tests=$((num_all_tests_src - num_all_tests)) +if [ $num_build_fail_tests -lt 0 ]; then + num_build_fail_tests=0 +fi echo "" echo " ------------------------------"