From 0c659242058605dd0ca5f4be979785aec8af27e8 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Wed, 28 Nov 2018 14:31:57 +0100 Subject: tests: fix return codes Try to return != 0 if a testsuite fails. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- tests/monitor/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/monitor') diff --git a/tests/monitor/run-tests.sh b/tests/monitor/run-tests.sh index f4089887..0478cf60 100755 --- a/tests/monitor/run-tests.sh +++ b/tests/monitor/run-tests.sh @@ -17,7 +17,7 @@ fi testdir=$(mktemp -d) if [ ! -d $testdir ]; then echo "Failed to create test directory" >&2 - exit 0 + exit 1 fi trap "rm -rf $testdir; $nft flush ruleset" EXIT -- cgit v1.2.3