@@ -53,29 +53,29 @@ def execute_tests(runner, args):
53
53
if not os .path .exists (env .RESULTS_DIR ):
54
54
os .mkdir (env .RESULTS_DIR )
55
55
command = [runner ] + [arg % ARG_VALUES for arg in ROBOT_ARGS ] + args + [env .ACCEPTANCE_TEST_DIR ]
56
- print ''
57
- print 'Starting test execution with command:\n ' + ' ' .join (command )
56
+ print ( '' )
57
+ print ( 'Starting test execution with command:\n ' + ' ' .join (command ) )
58
58
syslog = os .path .join (env .RESULTS_DIR , 'syslog.txt' )
59
59
call (command , shell = os .sep == '\\ ' , env = dict (os .environ , ROBOT_SYSLOG_FILE = syslog ))
60
60
61
61
def stop_http_server ():
62
62
call (['python' , env .HTTP_SERVER_FILE , 'stop' ])
63
63
64
64
def process_output (args ):
65
- print
65
+ print ()
66
66
if _has_robot_27 ():
67
67
call (['python' , os .path .join (env .RESOURCES_DIR , 'statuschecker.py' ),
68
68
os .path .join (env .RESULTS_DIR , 'output.xml' )])
69
69
rebot = 'rebot' if os .sep == '/' else 'rebot.bat'
70
70
rebot_cmd = [rebot ] + [ arg % ARG_VALUES for arg in REBOT_ARGS ] + args + \
71
71
[os .path .join (ARG_VALUES ['outdir' ], 'output.xml' ) ]
72
- print ''
73
- print 'Starting output processing with command:\n ' + ' ' .join (rebot_cmd )
72
+ print ( '' )
73
+ print ( 'Starting output processing with command:\n ' + ' ' .join (rebot_cmd ) )
74
74
rc = call (rebot_cmd , env = os .environ )
75
75
if rc == 0 :
76
- print 'All critical tests passed'
76
+ print ( 'All critical tests passed' )
77
77
else :
78
- print '%d critical test%s failed' % (rc , 's' if rc != 1 else '' )
78
+ print ( '%d critical test%s failed' % (rc , 's' if rc != 1 else '' ) )
79
79
return rc
80
80
81
81
def _has_robot_27 ():
@@ -89,18 +89,18 @@ def _exit(rc):
89
89
sys .exit (rc )
90
90
91
91
def _help ():
92
- print 'Usage: python run_tests.py python|jython browser [options]'
93
- print
94
- print 'See README.txt for details.'
92
+ print ( 'Usage: python run_tests.py python|jython browser [options]' )
93
+ print ()
94
+ print ( 'See README.txt for details.' )
95
95
return 255
96
96
97
97
def _run_unit_tests ():
98
- print 'Running unit tests'
98
+ print ( 'Running unit tests' )
99
99
failures = run_unit_tests ()
100
100
if failures != 0 :
101
- print '\n %d unit tests failed - not running acceptance tests!' % failures
101
+ print ( '\n %d unit tests failed - not running acceptance tests!' % failures )
102
102
else :
103
- print 'All unit tests passed'
103
+ print ( 'All unit tests passed' )
104
104
return failures
105
105
106
106
0 commit comments