File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,17 @@ def send_get(what):
183
183
184
184
# run the actual test
185
185
try :
186
- output_mupy = subprocess .check_output (cmdlist , stderr = subprocess .STDOUT )
186
+ result = subprocess .run (
187
+ cmdlist ,
188
+ stderr = subprocess .STDOUT ,
189
+ stdout = subprocess .PIPE ,
190
+ check = True ,
191
+ timeout = 10 ,
192
+ )
193
+ output_mupy = result .stdout
194
+ except subprocess .TimeoutExpired as er :
195
+ had_crash = True
196
+ output_mupy = (er .output or b"" ) + b"TIMEOUT"
187
197
except subprocess .CalledProcessError as er :
188
198
had_crash = True
189
199
output_mupy = er .output + b"CRASH"
@@ -869,7 +879,7 @@ def main():
869
879
tests = args .files
870
880
871
881
if not args .keep_path :
872
- # clear search path to make sure tests use only builtin modules and those in extmod
882
+ # clear search path to make sure tests use only builtin modules and those that can be frozen
873
883
os .environ ["MICROPYPATH" ] = os .pathsep .join (
874
884
[
875
885
"" ,
You can’t perform that action at this time.
0 commit comments