[igt-dev] [PATCH i-g-t 3/3] tests/kms_display_modes: reduce exec. time for sim env
Swati Sharma
swati2.sharma at intel.com
Fri May 26 06:45:20 UTC 2023
For simulation environment, we can reduce execution time
by running test only on one valid output on pipe.
Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
---
tests/kms_display_modes.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/kms_display_modes.c b/tests/kms_display_modes.c
index d69c7b93..b963c609 100644
--- a/tests/kms_display_modes.c
+++ b/tests/kms_display_modes.c
@@ -169,6 +169,12 @@ static void run_extendedmode_test(data_t *data) {
pipe2, output2);
}
}
+ /*
+ * For simulation env, no need to run
+ * test with each valid output on pipe.
+ */
+ if (igt_run_in_simulation())
+ break;
}
}
}
--
2.25.1
More information about the igt-dev
mailing list