diff --git a/.gitlab-ci/bare-metal/rootfs-setup.sh b/.gitlab-ci/bare-metal/rootfs-setup.sh index 0aaeea2b2a2..1bf4e8a2768 100644 --- a/.gitlab-ci/bare-metal/rootfs-setup.sh +++ b/.gitlab-ci/bare-metal/rootfs-setup.sh @@ -23,7 +23,7 @@ set +x # Pass through relevant env vars from the gitlab job to the baremetal init script echo "Variables passed through:" -"$CI_COMMON"/generate-env.sh | tee $rootfs_dst/set-job-env-vars.sh +"$CI_COMMON"/export-gitlab-job-env-for-dut.sh | tee $rootfs_dst/set-job-env-vars.sh set -x diff --git a/.gitlab-ci/common/generate-env.sh b/.gitlab-ci/common/export-gitlab-job-env-for-dut.sh similarity index 100% rename from .gitlab-ci/common/generate-env.sh rename to .gitlab-ci/common/export-gitlab-job-env-for-dut.sh diff --git a/.gitlab-ci/crosvm-runner.sh b/.gitlab-ci/crosvm-runner.sh index cb6a0ecd68b..f9bcf2dc1fb 100755 --- a/.gitlab-ci/crosvm-runner.sh +++ b/.gitlab-ci/crosvm-runner.sh @@ -76,7 +76,7 @@ set_vsock_context || { echo "Could not generate crosvm vsock CID" >&2; exit 1; } # Securely pass the current variables to the crosvm environment echo "Variables passed through:" SCRIPTS_DIR=$(readlink -en "${0%/*}") -${SCRIPTS_DIR}/common/generate-env.sh | tee ${VM_TEMP_DIR}/crosvm-env.sh +${SCRIPTS_DIR}/common/export-gitlab-job-env-for-dut.sh | tee ${VM_TEMP_DIR}/crosvm-env.sh cp ${SCRIPTS_DIR}/setup-test-env.sh ${VM_TEMP_DIR}/setup-test-env.sh # Set the crosvm-script as the arguments of the current script diff --git a/.gitlab-ci/lava/lava-submit.sh b/.gitlab-ci/lava/lava-submit.sh index b3a78d15a90..fe2da1975e6 100755 --- a/.gitlab-ci/lava/lava-submit.sh +++ b/.gitlab-ci/lava/lava-submit.sh @@ -47,7 +47,7 @@ ROOTFS_URL="$(get_path_to_artifact lava-rootfs.tar.zst)" rm -rf results mkdir -p results/job-rootfs-overlay/ -artifacts/ci-common/generate-env.sh > results/job-rootfs-overlay/set-job-env-vars.sh +artifacts/ci-common/export-gitlab-job-env-for-dut.sh > results/job-rootfs-overlay/set-job-env-vars.sh cp artifacts/ci-common/init-*.sh results/job-rootfs-overlay/ cp "$SCRIPTS_DIR"/setup-test-env.sh results/job-rootfs-overlay/ diff --git a/.gitlab-ci/test/gitlab-ci.yml b/.gitlab-ci/test/gitlab-ci.yml index 4f626d94980..89c1bec89b5 100644 --- a/.gitlab-ci/test/gitlab-ci.yml +++ b/.gitlab-ci/test/gitlab-ci.yml @@ -167,7 +167,7 @@ yaml-toml-shell-py-test: HWCI_TEST_SCRIPT: "/install/piglit/piglit-runner.sh" script: - section_start variables "Variables passed through:" - - install/common/generate-env.sh + - install/common/export-gitlab-job-env-for-dut.sh - section_end variables - install/piglit/piglit-traces.sh @@ -380,7 +380,7 @@ yaml-toml-shell-py-test: # Create a script to regenerate the CI environment when this job # begins running on the remote DUT. set +x - "$CI_COMMON_SCRIPTS"/generate-env.sh > ${JOB_FOLDER}/set-job-env-vars.sh + "$CI_COMMON_SCRIPTS"/export-gitlab-job-env-for-dut.sh > ${JOB_FOLDER}/set-job-env-vars.sh echo "export SCRIPTS_DIR=./install" >> ${JOB_FOLDER}/set-job-env-vars.sh echo "Variables passed through:" cat ${JOB_FOLDER}/set-job-env-vars.sh