File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
ament_cmake_test/ament_cmake_test Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 2121import subprocess
2222import sys
2323import time
24+ import shlex
2425from xml .etree .ElementTree import ElementTree
2526from xml .etree .ElementTree import ParseError
2627from xml .sax .saxutils import quoteattr
@@ -197,9 +198,14 @@ def log(msg, **kwargs):
197198
198199 start_time = time .monotonic ()
199200
201+ cmd = args .command
202+ if 'TEST_PREFIX' in os .environ :
203+ os_posix = os .name == "posix"
204+ cmd = shlex .split (os .environ ['TEST_PREFIX' ], os_posix ) + cmd
205+
200206 try :
201207 proc = subprocess .Popen (
202- args . command , stdout = subprocess .PIPE , stderr = subprocess .STDOUT ,
208+ cmd , stdout = subprocess .PIPE , stderr = subprocess .STDOUT ,
203209 env = env )
204210 while True :
205211 line = proc .stdout .readline ()
You can’t perform that action at this time.
0 commit comments