File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
graalpython/com.oracle.graal.python.test/src Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
- # Copyright (c) 2020, 2024 , Oracle and/or its affiliates. All rights reserved.
1
+ # Copyright (c) 2020, 2025 , Oracle and/or its affiliates. All rights reserved.
2
2
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3
3
#
4
4
# The Universal Permissive License (UPL), Version 1.0
@@ -744,17 +744,19 @@ def run_in_subprocess_and_watch(self):
744
744
]
745
745
if self .runner .failfast :
746
746
cmd .append ('--failfast' )
747
- self .process = subprocess .Popen (cmd , stdout = self .out_file , stderr = self .out_file )
748
747
749
- server . settimeout ( 180.0 )
748
+ self . process = None
750
749
try :
750
+ self .process = subprocess .Popen (cmd , stdout = self .out_file , stderr = self .out_file )
751
+ server .settimeout (180.0 )
751
752
sock = server .accept ()[0 ]
752
- except TimeoutError :
753
- interrupt_process (self .process )
753
+ except (TimeoutError , OSError ):
754
+ if self .process :
755
+ interrupt_process (self .process )
754
756
retries -= 1
755
757
if retries :
756
758
continue
757
- sys .exit ("Worker failed to connect to runner multiple times" )
759
+ sys .exit ("Worker failed to start/ connect to runner multiple times" )
758
760
759
761
with sock :
760
762
conn = Connection (sock )
You can’t perform that action at this time.
0 commit comments