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 <[email protected]>
---
 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

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to