diff --git a/.gitlab-ci/bare-metal/rootfs-setup.sh b/.gitlab-ci/bare-metal/rootfs-setup.sh index 882ddb964c2..0aaeea2b2a2 100644 --- a/.gitlab-ci/bare-metal/rootfs-setup.sh +++ b/.gitlab-ci/bare-metal/rootfs-setup.sh @@ -17,9 +17,6 @@ cp "${S3_JWT_FILE}" "${rootfs_dst}${S3_JWT_FILE}" date +'%F %T' -cp $CI_COMMON/capture-devcoredump.sh $rootfs_dst/ -cp $CI_COMMON/intel-gpu-freq.sh $rootfs_dst/ -cp $CI_COMMON/kdl.sh $rootfs_dst/ cp "$SCRIPTS_DIR/setup-test-env.sh" "$rootfs_dst/" set +x diff --git a/.gitlab-ci/common/init-stage2.sh b/.gitlab-ci/common/init-stage2.sh index b7a62b3c531..7043fa3166c 100755 --- a/.gitlab-ci/common/init-stage2.sh +++ b/.gitlab-ci/common/init-stage2.sh @@ -140,13 +140,14 @@ if [ "$HWCI_FREQ_MAX" = "true" ]; then # and enable throttling detection & reporting. # Additionally, set the upper limit for CPU scaling frequency to 65% of the # maximum permitted, as an additional measure to mitigate thermal throttling. - /intel-gpu-freq.sh -s 70% --cpu-set-max 65% -g all -d + /install/common/intel-gpu-freq.sh -s 70% --cpu-set-max 65% -g all -d fi # Start a little daemon to capture sysfs records and produce a JSON file -if [ -x /kdl.sh ]; then +KDL_PATH=/install/common/kdl.sh +if [ -x "$KDL_PATH" ]; then echo "launch kdl.sh!" - /kdl.sh & + $KDL_PATH & BACKGROUND_PIDS="$! $BACKGROUND_PIDS" else echo "kdl.sh not found!" @@ -160,8 +161,9 @@ fi # Start a little daemon to capture the first devcoredump we encounter. (They # expire after 5 minutes, so we poll for them). -if [ -x /capture-devcoredump.sh ]; then - /capture-devcoredump.sh & +CAPTURE_DEVCOREDUMP=/install/common/capture-devcoredump.sh +if [ -x "$CAPTURE_DEVCOREDUMP" ]; then + $CAPTURE_DEVCOREDUMP & BACKGROUND_PIDS="$! $BACKGROUND_PIDS" fi diff --git a/.gitlab-ci/lava/lava-submit.sh b/.gitlab-ci/lava/lava-submit.sh index 9c2d050fc1b..b3a78d15a90 100755 --- a/.gitlab-ci/lava/lava-submit.sh +++ b/.gitlab-ci/lava/lava-submit.sh @@ -48,10 +48,7 @@ rm -rf results mkdir -p results/job-rootfs-overlay/ artifacts/ci-common/generate-env.sh > results/job-rootfs-overlay/set-job-env-vars.sh -cp artifacts/ci-common/capture-devcoredump.sh results/job-rootfs-overlay/ cp artifacts/ci-common/init-*.sh results/job-rootfs-overlay/ -cp artifacts/ci-common/intel-gpu-freq.sh results/job-rootfs-overlay/ -cp artifacts/ci-common/kdl.sh results/job-rootfs-overlay/ cp "$SCRIPTS_DIR"/setup-test-env.sh results/job-rootfs-overlay/ tar zcf job-rootfs-overlay.tar.gz -C results/job-rootfs-overlay/ .