diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-08-03 13:41:53 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-08-03 17:39:04 +0200 |
commit | 4d0f59c62991f4e96d9b36427da1b2fc5a59f7a0 (patch) | |
tree | d63c5755945f16aa8632f7092d4ea22a0a701089 | |
parent | d5cac49cca0a48a5531b6d59f3b6b716dffa3786 (diff) |
tests/pm_rpm: Use the quick mode by default
pm_rpm is one of the main offenders for long runtime in our full igt
run. And hey, there's a quick option already, so make it the default.
This means there's yet another way to enable stress tests, we really
need to standardize this somehow. Or shred the stress-tests we really
don't want/need anymore.
v2: Fixup the entire help text (David).
v3: Switch shortopt from 'q' to 'l', only used internal, so just for
clarity (Arkadiusz).
Cc: David Weinehall <david.weinehall@linux.intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
-rw-r--r-- | tests/pm_rpm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c index 1873c901..47c9f114 100644 --- a/tests/pm_rpm.c +++ b/tests/pm_rpm.c @@ -1852,14 +1852,14 @@ static void fences_subtest(bool dpms) igt_assert(munmap(buf_ptr, params.fb.size) == 0); } -int rounds = 40; +int rounds = 10; bool stay = false; static int opt_handler(int opt, int opt_index, void *data) { switch (opt) { - case 'q': - rounds = 10; + case 'l': + rounds = 50; break; case 's': stay = true; @@ -1874,10 +1874,10 @@ static int opt_handler(int opt, int opt_index, void *data) int main(int argc, char *argv[]) { const char *help_str = - " --quick\t\tMake the stress-tests not stressful, for quick regression testing.\n" + " --stress\t\tMake the stress-tests more stressful.\n" " --stay\t\tDisable all screen and try to go into runtime pm. Useful for debugging."; static struct option long_options[] = { - {"quick", 0, 0, 'q'}, + {"stress", 0, 0, 'l'}, {"stay", 0, 0, 's'}, { 0, 0, 0, 0 } }; |