gitlab-ci: add capture for i915 error state
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: David Heidelberg <david.heidelberg@collabora.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23099>
This commit is contained in:

committed by
Marge Bot

parent
978bb7b9d1
commit
28e2031e3a
@@ -10,5 +10,23 @@ while true; do
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
i915_error_states=$(find /sys/devices/ -path */drm/card*/error)
|
||||
for i in $i915_error_states; do
|
||||
tmpfile=$(mktemp)
|
||||
cp "$i" "$tmpfile"
|
||||
filesize=$(stat --printf="%s" "$tmpfile")
|
||||
# Does the file contain "No error state collected" ?
|
||||
if [ "$filesize" = 25 ]; then
|
||||
rm "$tmpfile"
|
||||
else
|
||||
echo "Found an i915 error state at $i size=$filesize."
|
||||
if cp "$tmpfile" /results/first.i915_error_state; then
|
||||
rm "$tmpfile"
|
||||
echo 1 > "$i"
|
||||
echo "Saved to the job artifacts at /first.i915_error_state"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
done
|
||||
sleep 10
|
||||
done
|
||||
|
Reference in New Issue
Block a user