summaryrefslogtreecommitdiff
path: root/piglit-run.py
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2014-01-31 16:31:18 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2014-02-04 10:57:21 -0800
commitf992b7fe0de2261d8b37e8f3626745a7712d7cf9 (patch)
tree9213a08299bea5c963a7e5ef0f292c705125d615 /piglit-run.py
parent90a25641164c8a0c8cc09a5515864b654df9d368 (diff)
piglit-run.py: Restrict dmesg to serial runs
Dmesg reporting has always been inaccurate with concurrent runs, and the solution to concurrent runs would be to have each run take out a lock, removing the chance that another test generated an error in dmesg while it was running. But this effectively makes them a serial run, and at the cost of greater code complexity. With that in mind it makes more sense to just force --dmesg to imply -1. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'piglit-run.py')
-rwxr-xr-xpiglit-run.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/piglit-run.py b/piglit-run.py
index 5f82f39f7..0dbfa738c 100755
--- a/piglit-run.py
+++ b/piglit-run.py
@@ -81,7 +81,7 @@ def main():
parser.add_argument("--dmesg",
action="store_true",
help="Capture a difference in dmesg before and "
- "after each test")
+ "after each test. Implies -1/--no-concurrency")
parser.add_argument("test_profile",
metavar="<Path to one or more test profile(s)>",
nargs='+',
@@ -96,6 +96,11 @@ def main():
if args.platform:
os.environ['PIGLIT_PLATFORM'] = args.platform
+ # If dmesg is requested we must have serial run, this is becasue dmesg
+ # isn't reliable with threaded run
+ if args.dmesg:
+ args.concurrency = "none"
+
# Read the config file
if args.config_file:
core.PIGLIT_CONFIG.readfp(args.config_file)