From d80ff13eb91229dd60039d1d450bf30be97a0c00 Mon Sep 17 00:00:00 2001 From: Alexey Fedoseev Date: Mon, 22 Apr 2024 21:48:38 +0300 Subject: [PATCH] continue tests in case of failed one --- run-tests.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index 2372329..4a9afc5 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -23,16 +23,16 @@ for t in $(ls tests/*.test); do fi if [ $? != 0 ] then - echo "test run failed!" - exit 2 + echo "test $num run failed!" + continue fi if [ -f "tests/$num-output.graphml" ] then diff "$t.graphml" "tests/$num-output.graphml" if [ $? != 0 ] then - echo "test failed: graphml file didn't match the pattern!" - exit 3 + echo "test $num failed: graphml file didn't match the pattern!" + continue fi fi if [ -f "tests/$num-output.txt" ] @@ -40,8 +40,8 @@ for t in $(ls tests/*.test); do diff "$t.txt" "tests/$num-output.txt" if [ $? != 0 ] then - echo "test failed: output didn't match the pattern!" - exit 3 + echo "test $num failed: output didn't match the pattern!" + continue fi fi echo "ok"