summaryrefslogtreecommitdiff
path: root/piglit-run.py
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2013-12-05 14:02:18 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2013-12-19 13:24:30 -0800
commitd525a0cededab9eff43d7597a3593d843428a68b (patch)
tree747b63ca91f282a9786d62041f56685aeb2c74b6 /piglit-run.py
parentd3db9a10882b7d504ded10e3b46224b3b8877b41 (diff)
Add new concurrency option
This patch adds a new concurrency option that runs all tests out of a multi-threaded pool, ignoring their request to be threaded or not. This new option is mutually exclusive with the -1/--no-concurrency option. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Diffstat (limited to 'piglit-run.py')
-rwxr-xr-xpiglit-run.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/piglit-run.py b/piglit-run.py
index 0d3d1be3a..c4bed93c6 100755
--- a/piglit-run.py
+++ b/piglit-run.py
@@ -56,10 +56,19 @@ def main():
metavar="<regex>",
help="Exclude matching tests "
"(can be used more than once)")
- parser.add_argument("-1", "--no-concurrency",
- action="store_false",
- dest="concurrency",
- help="Disable concurrent test runs")
+ conc_parser = parser.add_mutually_exclusive_group()
+ conc_parser.add_argument('-c', '--all-concurrent',
+ action="store_const",
+ default="some",
+ const="all",
+ dest="concurrency",
+ help="Run all tests concurrently")
+ conc_parser.add_argument("-1", "--no-concurrency",
+ action="store_const",
+ default="some",
+ const="none",
+ dest="concurrency",
+ help="Disable concurrent test runs")
parser.add_argument("-p", "--platform",
choices=["glx", "x11_egl", "wayland", "gbm"],
help="Name of windows system passed to waffle")