Skip to content

Commit 3fa4a18

Browse files
committed
verify-kernel-log.sh: guard "xrandr" with a short "timeout"
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 <marc.herbert@intel.com>
1 parent 0ce2375 commit 3fa4a18

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test-case/verify-kernel-boot-log.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ show_daemons_session_display()
146146
# a session-specific, /run/user/ tmpfs that cannot be seen over ssh (or from any
147147
# other session). Sometimes this shows XWAYLAND.
148148
# As of April 2024 there does not seem to be any Wayland equivalent for `xrandr`
149-
DISPLAY=:0 xrandr --listmonitors
150-
DISPLAY=:1024 xrandr --listmonitors
149+
for d in 0 1024; do
150+
DISPLAY=:"$d" timeout -k 3 5 xrandr --listmonitors
151+
done
151152

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

0 commit comments

Comments
 (0)