]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix paths to binaries in cross-version-config-tests job
authorMichal Nowak <mnowak@isc.org>
Wed, 30 Oct 2024 20:15:44 +0000 (21:15 +0100)
committerMichal Nowak <mnowak@isc.org>
Mon, 25 Nov 2024 10:36:51 +0000 (11:36 +0100)
The cross-version-config-tests job has never functioned in CI because
the testing framework changed after the testing was completed. To run
the new "named" binary using the old configurations, paths in the test
framework must be updated to point to the location of the new binaries.

.gitlab-ci.yml

index 26ff4026cd12dc623a9c5c31e031b861dadb19a1..20e0ebfa3047d27d6f2ab77905929673618b40d9 100644 (file)
@@ -725,8 +725,7 @@ cross-version-config-tests:
     # Run the setup phase of all system tests in the most recently tagged BIND 9
     # release using the binaries built for the current BIND 9 version.  This
     # intends to detect obvious backward compatibility issues with the latter.
-    - >
-      echo "${CI_PROJECT_DIR}" > isctest/vars/.ac_vars/TOP_BUILDDIR
+    - sed -i "s|f\"{AC_VARS\['TOP_BUILDDIR'\]}|\"$CI_PROJECT_DIR|g" isctest/vars/basic.py
     - >
       "$PYTEST" --setup-only --junit-xml="$CI_PROJECT_DIR"/junit.xml -n "${TEST_PARALLEL_JOBS:-1}"
   needs: