File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
graalpython/com.oracle.graal.python.test/src/tests Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -140,11 +140,14 @@ def parse_unittest_output(output):
140
140
glob_pattern = os .path .join (os .path .dirname (test .__file__ ), "test_*.py" )
141
141
retag = False
142
142
maxrepeats = 4
143
+ tout = "240"
143
144
for arg in sys .argv [1 :]:
144
145
if arg == "--retag" :
145
146
retag = True
146
147
elif arg .startswith ("--maxrepeats=" ):
147
148
maxrepeats = int (arg .partition ("=" )[2 ])
149
+ elif arg .startswith ("--timeout=" ):
150
+ tout = arg .partition ("=" )[2 ]
148
151
elif arg == "--help" :
149
152
print (sys .argv [0 ] + " [--retag] [--maxrepeats=n] [glob]" )
150
153
else :
@@ -174,7 +177,7 @@ def parse_unittest_output(output):
174
177
else :
175
178
testfile_stem = os .path .splitext (os .path .basename (testfile ))[0 ]
176
179
testmod = "test." + testfile_stem
177
- cmd = [timeout , "-s" , "9" , "240" ] + executable
180
+ cmd = [timeout , "-s" , "9" , tout ] + executable
178
181
if repeat == 0 :
179
182
# Allow catching Java exceptions in the first iteration only, so that subsequent iterations
180
183
# (there will be one even if everything succeeds) filter out possible false-passes caused by
@@ -220,7 +223,7 @@ def parse_unittest_output(output):
220
223
f .write ("\n " )
221
224
if not passing_tests :
222
225
os .unlink (tagfile )
223
- print ("No successful tests remaining " )
226
+ print ("No successful tests detected (you can try to increase the timeout by using --timeout=NNN) " )
224
227
break
225
228
226
229
if p .returncode == 0 :
You can’t perform that action at this time.
0 commit comments