Skip to content

Commit

Permalink
verify-kernel-log.sh: guard "xrandr" with a short "timeout"
Browse files Browse the repository at this point in the history
xrandr can hang! Who could have known? See evidence in:

thesofproject/linux#5009 (comment)

Don't wait for CI to timeout and kill the whole script so we don't lose
precious logs.

Signed-off-by: Marc Herbert <[email protected]>
  • Loading branch information
marc-hb committed May 23, 2024
1 parent a794795 commit af7d6ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test-case/verify-kernel-boot-log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ show_daemons_session_display()
# a session-specific, /run/user/ tmpfs that cannot be seen over ssh (or from any
# other session). Sometimes this shows XWAYLAND.
# As of April 2024 there does not seem to be any Wayland equivalent for `xrandr`
DISPLAY=:0 xrandr --listmonitors
DISPLAY=:1024 xrandr --listmonitors
for d in 0 1024; do
DISPLAY=:"$d" timeout -k 3 5 xrandr --listmonitors
done

ls -l /sys/class/drm/
set +x # can't use set -x because of the crazy "sudo()" in hijack.sh
Expand Down

0 comments on commit af7d6ad

Please sign in to comment.