[Piglit] [PATCH 4/8] exectest.py: set python PIGLIT_PLATFORM from environment variable

Jordan Justen jordan.l.justen at intel.com
Tue Oct 9 16:42:28 PDT 2012


If the PIGLIT_PLATFORM environment variable is set, then read its value
into the python PIGLIT_PLATFORM global variable. If it is not set, then
PIGLIT_PLATFORM is set to an empty string.

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 framework/exectest.py |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/framework/exectest.py b/framework/exectest.py
index 3172a7e..7e6279a 100644
--- a/framework/exectest.py
+++ b/framework/exectest.py
@@ -28,6 +28,14 @@ import types
 from core import Test, testBinDir, TestResult
 
 #############################################################################
+##### Platform global variables
+#############################################################################
+if 'PIGLIT_PLATFORM' in os.environ:
+    PIGLIT_PLATFORM = os.environ['PIGLIT_PLATFORM']
+else:
+    PIGLIT_PLATFORM = ''
+
+#############################################################################
 ##### ExecTest: A shared base class for tests that simply run an executable.
 #############################################################################
 
-- 
1.7.9.5



More information about the Piglit mailing list