File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
graalpython/com.oracle.graal.python.test/src/tests Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 37
37
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
38
# SOFTWARE.
39
39
40
- import sys
41
-
42
40
import glob
43
- import test
44
-
45
41
import os
46
42
import subprocess
43
+ import sys
44
+ import test
47
45
48
46
if os .environ .get ("ENABLE_CPYTHON_TAGGED_UNITTESTS" ) == "true" or __name__ == "__main__" :
49
47
TAGS_DIR = os .path .join (os .path .dirname (__file__ ), "unittest_tags" )
@@ -225,6 +223,10 @@ def main():
225
223
print ("*stderr*" )
226
224
print (p .stderr )
227
225
226
+ if p .returncode == - 9 :
227
+ print (
228
+ f"\n Timeout (return code -9)\n you can try to increase the current timeout { tout } s by using --timeout=NNN" )
229
+
228
230
passing_tests = set ()
229
231
failing_tests = set ()
230
232
@@ -245,7 +247,7 @@ def main():
245
247
f .write ("\n " )
246
248
if not passing_tests :
247
249
os .unlink (tagfile )
248
- print ("No successful tests detected (you can try to increase the timeout by using --timeout=NNN) " )
250
+ print ("No successful tests detected" )
249
251
break
250
252
251
253
if p .returncode == 0 :
@@ -254,10 +256,6 @@ def main():
254
256
continue
255
257
print (f"Suite succeeded with { len (passing_tests )} tests" )
256
258
break
257
- elif p .returncode == - 9 :
258
- print (
259
- f"\n Timeout (return code -9)\n you can try to increase the current timeout { tout } s by using --timeout=NNN" )
260
- break
261
259
else :
262
260
print (f"Suite failed, retrying with { len (passing_tests )} tests" )
263
261
You can’t perform that action at this time.
0 commit comments