[Piglit] [Patch v2 08/13] tests/sanity.tests: Make sanity.tests importable
Dylan Baker
baker.dylan.c at gmail.com
Wed Jan 8 16:25:06 PST 2014
This allows sanity.py to export a profile instance, meaning it can be
used as an import instead of an execfile.
Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
tests/sanity.py | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/tests/sanity.py b/tests/sanity.py
index 262172c..059127c 100644
--- a/tests/sanity.py
+++ b/tests/sanity.py
@@ -2,14 +2,11 @@
# Minimal tests to check whether the installation is working
#
-from framework.core import Group, TestProfile
+from framework.core import TestProfile
from framework.gleantest import GleanTest
__all__ = ['profile']
-glean = Group()
-glean['basic'] = GleanTest('basic')
-glean['readPixSanity'] = GleanTest('readPixSanity')
-
profile = TestProfile()
-profile.tests['glean'] = glean
+profile.tests['glean/basic'] = GleanTest('basic')
+profile.tests['glean/readPixSanity'] = GleanTest('readPixSanity')
--
1.8.5.2
More information about the Piglit
mailing list