tests/pm_rpm: reduce the number of rounds on the stress tests

With the current Kernel, it takes more than 10 minutes to run
modeset-stress-extra-wait on BYT with eDP, and we don't really want
IGT subtests that take more than 10 minutes to run: QA reports them as
bugs.

Since, as far as I remember, any of these RPM race condition bugs we
had could always be triggered with just 4-5 rounds of testing, let's
tune down the number of rounds we test:

Before:
	rounds = (--quick option used) ? 10 : 50;

After:
	rounds = (--quick option used) ? 10 : 40;
	rounds = (wait_flags & WAIT_EXTRA) ? rounds / 2 : rounds;

This should make all subtests be way above the 10m limit.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84897
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
Paulo Zanoni 2014-10-14 14:42:23 -03:00
parent 8aa7fdaee8
commit 7308e3a92b

View File

@ -768,6 +768,9 @@ static void modeset_subtest(enum screen_type type, int rounds, int wait_flags)
if (wait_flags & WAIT_PC8_RES)
igt_require(has_pc8);
if (wait_flags & WAIT_EXTRA)
rounds /= 2;
for (i = 0; i < rounds; i++) {
if (wait_flags & USE_DPMS)
disable_all_screens_dpms(&ms_data);
@ -1719,7 +1722,7 @@ static void fences_subtest(bool dpms)
igt_assert(munmap(buf_ptr, params.fb.size) == 0);
}
int rounds = 50;
int rounds = 40;
bool stay = false;
static int opt_handler(int opt, int opt_index)