[Piglit] [Patch v2 12/13] tests/r500.py use import instead of execfile

Dylan Baker baker.dylan.c at gmail.com
Wed Jan 8 16:25:10 PST 2014


Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
 tests/r500.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tests/r500.py b/tests/r500.py
index 57b80ce..a47cb8e 100644
--- a/tests/r500.py
+++ b/tests/r500.py
@@ -2,14 +2,10 @@
 # Testing the r500 DRI driver
 #
 
-import os.path
+from test.quick import profile
 
 __all__ = ['profile']
 
-global profile
-
-execfile(os.path.dirname(__file__) + '/quick.tests')
-
 # glean/blendFunc
 #   R500 blending hardware appears to be a bit better than R300
 env = profile.tests['glean']['blendFunc'].env
-- 
1.8.5.2



More information about the Piglit mailing list