blob: e36bfb4748667a44443f75f0441d22cf554f1c5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
diff --git a/framework/test/base.py b/framework/test/base.py
index 69e8178ae..6a7c81f25 100644
--- a/framework/test/base.py
+++ b/framework/test/base.py
@@ -381,6 +381,10 @@ class ValgrindMixin(object):
@Test.command.getter
def command(self):
command = super(ValgrindMixin, self).command
+
+ if 'PIGLIT_EMULATOR' in os.environ:
+ command = [os.environ['PIGLIT_EMULATOR']] + command
+
if OPTIONS.valgrind:
return ['valgrind', '--quiet', '--error-exitcode=1',
'--tool=memcheck'] + command
diff --git a/framework/wflinfo.py b/framework/wflinfo.py
index eaaa57d4d..7c43eaae7 100644
--- a/framework/wflinfo.py
+++ b/framework/wflinfo.py
@@ -106,6 +106,9 @@ class WflInfo(object):
else:
bin = 'wflinfo'
+ if 'PIGLIT_WFLINFO_EXECUTABLE' in os.environ:
+ bin = os.environ['PIGLIT_WFLINFO_EXECUTABLE']
+
cmd = [bin, '--platform', platform] + opts
# setup execution environment where we extend the PATH env var
|