From 7fb2fa0e4bf039cf294b6b0cf82ebb5fbf974497 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 21 Aug 2024 15:56:28 +0100 Subject: [PATCH] ci/devcoredump: Use common $RESULTS_DIR Signed-off-by: Daniel Stone Part-of: --- .gitlab-ci/common/capture-devcoredump.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci/common/capture-devcoredump.sh b/.gitlab-ci/common/capture-devcoredump.sh index 302b9208baa..f5f615d69eb 100755 --- a/.gitlab-ci/common/capture-devcoredump.sh +++ b/.gitlab-ci/common/capture-devcoredump.sh @@ -7,7 +7,7 @@ while true; do devcds=$(find /sys/devices/virtual/devcoredump/ -name data 2>/dev/null) for i in $devcds; do echo "Found a devcoredump at $i." - if cp $i /results/first.devcore; then + if cp $i $RESULTS_DIR/first.devcore; then echo 1 > $i echo "Saved to the job artifacts at /first.devcore" exit 0 @@ -23,7 +23,7 @@ while true; do rm "$tmpfile" else echo "Found an i915 error state at $i size=$filesize." - if cp "$tmpfile" /results/first.i915_error_state; then + if cp "$tmpfile" $RESULTS_DIR/first.i915_error_state; then rm "$tmpfile" echo 1 > "$i" echo "Saved to the job artifacts at /first.i915_error_state"