diff options
author | Marta Lofstedt <marta.lofstedt@intel.com> | 2018-04-05 13:58:44 +0300 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2018-04-06 13:36:26 +0300 |
commit | 8a7353abf41eb3dbbde240ac5f7ac26f92ed693a (patch) | |
tree | b6f1daa41f29a4a04f762416923d4edb58de4f44 | |
parent | 164b4a3ab34bd7d18d34181c62bfaedb906a76e3 (diff) |
tests/kms_psr_sink_crc: Save runtime by not waiting in crc function
The get_sink_crc function usleep(300000) with motivation:
"Now give a time for human eyes". However, the function has already
exited early on igt_interactive_debug, so no human is waiting.
Also, waiting for keypress is obsolete when not in
igt_interactive_debug mode.
Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com>
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
-rw-r--r-- | tests/kms_psr_sink_crc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index 2b60acf3..98d29ba9 100644 --- a/tests/kms_psr_sink_crc.c +++ b/tests/kms_psr_sink_crc.c @@ -236,12 +236,6 @@ static void get_sink_crc(data_t *data, char *crc) { close(dir); igt_debug("%s\n", crc); - igt_debug_wait_for_keypress("crc"); - - /* The important value was already taken. - * Now give a time for human eyes - */ - usleep(300000); /* Black screen is always invalid */ igt_assert(strncmp(crc, CRC_BLACK, CRC_LEN) != 0); |