From c85638052ef7fecf1157bb3b4b8a8ea62ebf2bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 10 Jul 2020 09:32:13 +0300 Subject: [PATCH] Rerun failed tests This should help stabilize the test set by making sure the test actually fails twice. This'll still leave the output in the log so that the problems that only occur on the first run can be eventually fixed. --- maxscale-system-test/mdbci/run_test.sh | 1 + maxscale-system-test/mdbci/run_test_snapshot.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/maxscale-system-test/mdbci/run_test.sh b/maxscale-system-test/mdbci/run_test.sh index cde94816e..a5027644c 100755 --- a/maxscale-system-test/mdbci/run_test.sh +++ b/maxscale-system-test/mdbci/run_test.sh @@ -83,6 +83,7 @@ else eval "arguments=(${test_set})" ctest -N "${arguments[@]}" ctest -VV "${arguments[@]}" + ctest --rerun-failed -VV fi cp core.* ${logs_publish_dir} ${script_dir}/copy_logs.sh diff --git a/maxscale-system-test/mdbci/run_test_snapshot.sh b/maxscale-system-test/mdbci/run_test_snapshot.sh index bcbbf95d7..d05236a92 100755 --- a/maxscale-system-test/mdbci/run_test_snapshot.sh +++ b/maxscale-system-test/mdbci/run_test_snapshot.sh @@ -80,6 +80,7 @@ fi ulimit -c unlimited ctest $test_set -VV +ctest --rerun-failed -VV cp core.* ${logs_publish_dir} ${script_dir}/copy_logs.sh