@@ -37,6 +37,7 @@ def run_test_suite():
37
37
unittest .TextTestRunner ().run (suite )
38
38
os .chdir (original_cwd )
39
39
40
+
40
41
def run_test_suite_with_junit_output ():
41
42
try :
42
43
import unittest2 as unittest
@@ -49,6 +50,7 @@ def run_test_suite_with_junit_output():
49
50
xmlrunner .XMLTestRunner (output = '../test-reports' ).run (suite )
50
51
os .chdir (original_cwd )
51
52
53
+
52
54
class CoverageCommand (Command ):
53
55
"""setup.py command to run code coverage of the test suite."""
54
56
description = "Create an HTML coverage report from running the full test suite."
@@ -87,6 +89,7 @@ def finalize_options(self):
87
89
def run (self ):
88
90
run_test_suite ()
89
91
92
+
90
93
class JunitXmlTestCommand (Command ):
91
94
"""setup.py command to run the whole test suite."""
92
95
description = "Run test full test suite with JUnit-formatted output."
@@ -170,7 +173,7 @@ def run(self):
170
173
171
174
setup_py = os .path .join ('examples' , 'searchcommands_app' , 'setup.py' )
172
175
173
- check_call ((setup_py , 'build' , '--force' ), stderr = STDOUT , stdout = sys .stdout )
176
+ check_call (('python' , setup_py , 'build' , '--force' ), stderr = STDOUT , stdout = sys .stdout )
174
177
tarball = 'searchcommands_app-{0}-private.tar.gz' .format (self .distribution .metadata .version )
175
178
source = os .path .join ('examples' , 'searchcommands_app' , 'build' , tarball )
176
179
target = os .path .join ('build' , tarball )
0 commit comments