summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2015-01-12 00:22:30 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2015-01-19 09:22:51 -0800
commit7ce612b1c59ab471d64f773678912bcf0956bc28 (patch)
treeab81695f5ce18e394a2a87ec3f18c441cb59a908
parentfaf462676926aa704568d64ae898720285f52af9 (diff)
cl.py: Use the more standard sys.platform.startswith for linux detection
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Acked-by: Tom Stellard <thomas.stellard@amd.com>
-rw-r--r--tests/cl.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/cl.py b/tests/cl.py
index f7f281138..0efe67301 100644
--- a/tests/cl.py
+++ b/tests/cl.py
@@ -6,7 +6,7 @@ from __future__ import division, absolute_import, print_function
import os
import os.path as path
-import platform
+import sys
import glob
from framework.profile import TestProfile
@@ -18,7 +18,8 @@ __all__ = ['profile']
######
# Helper functions
-can_do_concurrent = platform.system().lower()[0:5] != 'linux' or glob.glob('/dev/dri/render*')
+can_do_concurrent = (not sys.platform.startswith('linux') or
+ glob.glob('/dev/dri/render*'))
def add_plain_test(group, name, args):
group[name] = PiglitCLTest(args, run_concurrent=can_do_concurrent)