File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 25
25
26
26
from __future__ import print_function
27
27
28
- import sys
29
- import subprocess
30
28
from os .path import abspath , dirname , exists , join
31
29
from os import mkdir
32
30
from shutil import rmtree
31
+ import shlex
32
+ import sys
33
+ import subprocess
33
34
34
35
import robot
35
36
import robotstatuschecker
49
50
mkdir (results )
50
51
51
52
if not arguments :
52
- print ('Running unit tests with %s.' % interpreter )
53
- rc = subprocess .call ([interpreter , join (curdir , 'utest' , 'run.py' )])
53
+ print ('Running unit tests with "%s".' % interpreter )
54
+ command = shlex .split (interpreter ) + [join (curdir , 'utest' , 'run.py' )]
55
+ rc = subprocess .call (command )
54
56
print ()
55
57
if rc != 0 :
56
58
print ('%d unit test%s failed.' % (rc , 's' if rc != 1 else '' ))
You can’t perform that action at this time.
0 commit comments