tests/amdgpu: Fix for HDMI Compliance Automation
PATCH 2/3 tests/amdgpu: Fix for HDMI Compliance Automation
From: Mark Broadworth <[email protected]>
It is to fix hand shaking issue between DUT and the box. Need to block until SIGNALRM triggered.
Signed-off-by Fangzhi Zuo <[email protected]>
Tested-by Mark Broadworth <[email protected]>
--- tools/amd_hdmi_compliance.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
tools/amd_hdmi_compliance.c +6 -2
@@ -915,8 +915,12 @@ static void test_vic_mode(data_t *data, int vic, int conn_id)igt_plane_set_fb (data->primary, &afb);igt_display_commit_atomic (display,DRM_MODE_ATOMIC_ALLOW_MODESET ,NULL ); -igt_info ("Press [Enter] to finish\n" ); -wait_for_keypress (); +if (data->timeout_seconds >0 ) +pause ();/* block until SIGALRM fires (works when detached) */ +else { +igt_info ("Press [Enter] to finish\n" ); +wait_for_keypress (); + }test_fini (data); }
Signature · 1 line
2.43.0