From: Tom Krizek Date: Tue, 22 Aug 2023 15:26:14 +0000 (+0200) Subject: ci: fix after_script for out-of-tree tests X-Git-Tag: v9.19.17~35^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86043b0bbecb4d5a4273ef669371a9504e15644d;p=thirdparty%2Fbind9.git ci: fix after_script for out-of-tree tests The commands in after_script run in a new shell, separate from before_script and script commands. Since the pytest.log.txt is for out of tree tests is present in the build directory, switch to it (if set) before running any postprocessing commands. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1dd538519ee..9c7f41da0b1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -406,6 +406,7 @@ cross-version-config-tests: "$PYTEST" --junit-xml="$CI_PROJECT_DIR"/junit.xml -n "$TEST_PARALLEL_JOBS" | tee pytest.out.txt - '( ! grep -F "grep: warning:" pytest.out.txt )' after_script: + - test -n "${OUT_OF_TREE_WORKSPACE}" && cd "${OUT_OF_TREE_WORKSPACE}" - *display_pytest_failures .system_test: &system_test_job