mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 21:32:56 +00:00
lib/igt_aux: Improve wait_for_keypress helper a bit
- Use keys in just one env variable to enable/disable it. - Add an informational message so that the users knows when to press the key (more useful over ssh than when run on the terminal ofc). - Improve the documentation so that it's clearer how to use this when running tests. Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Damien Lespiau <damien.lespiau@intel.com> Acked-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+1
-2
@@ -1401,8 +1401,7 @@ static int do_display_commit(igt_display_t *display,
|
||||
|
||||
LOG_UNINDENT(display);
|
||||
|
||||
if (getenv("IGT_DISPLAY_WAIT_AT_COMMIT"))
|
||||
igt_wait_for_keypress();
|
||||
igt_debug_wait_for_keypress("modeset");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user