summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-10-15 12:36:17 -0700
committerEric Anholt <eric@anholt.net>2011-10-18 11:57:27 -0700
commit27ca4dd4cc241a4caff4ec15f69338f2020a0da3 (patch)
tree4db67d437f5a6396378efdb759c4a37aa56af977
parentd66242acf7faf33ec5d58474dfc1390a76fe1dc9 (diff)
Make a plain_test() helper like concurrent_test() vs add_concurrent_test().
Acked-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--framework/exectest.py3
-rw-r--r--tests/all.tests6
2 files changed, 6 insertions, 3 deletions
diff --git a/framework/exectest.py b/framework/exectest.py
index a22fe8688..5821071c3 100644
--- a/framework/exectest.py
+++ b/framework/exectest.py
@@ -119,9 +119,6 @@ class ExecTest(Test):
-def add_plain_test(group, name):
- group[name] = PlainExecTest([name, '-auto'])
-
#############################################################################
##### PlainExecTest: Run a "native" piglit test executable
##### Expect one line prefixed PIGLIT: in the output, which contains a
diff --git a/tests/all.tests b/tests/all.tests
index 8074205a4..687abefc7 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -25,6 +25,12 @@ generatedTestDir = os.path.join(
'generated_tests')
# Quick wrapper for PlainExecTest for our usual concurrent args.
+def plain_test(name):
+ return PlainExecTest([name, '-auto'])
+
+def add_plain_test(group, name):
+ group[name] = PlainExecTest([name, '-auto'])
+
def concurrent_test(args):
test = PlainExecTest(args + " -auto -fbo")
test.runConcurrent = True