From aa7d27f714a342b999aae32a2468e1e3d1403b01 Mon Sep 17 00:00:00 2001 From: Erik Norvell Date: Mon, 11 Mar 2024 08:18:21 +0100 Subject: [PATCH] Fix for create_ref_part2 in case this generates zero tests --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f2ac58b29..f9bb8060e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -101,8 +101,9 @@ stages: # create short test vectors - python3 tests/create_short_testvectors.py # create references - - python3 -m pytest $TEST_SUITE -v --update_ref 1 -m create_ref --create_ref -n auto - - python3 -m pytest $TEST_SUITE -v --update_ref 1 -m create_ref_part2 -n auto + - exit_code=0 + - python3 -m pytest $TEST_SUITE -v --update_ref 1 -m create_ref --create_ref -n auto || exit_code=$? + - python3 -m pytest $TEST_SUITE -v --update_ref 1 -m create_ref_part2 -n auto || exit_code=$? # Catch exit code to prevent halt in case this step produces zero tests .update-scripts-repo: &update-scripts-repo -- GitLab