Skip to content

Commit c702321

Browse files
davidotlinusg
authored andcommitted
main.py: Assume that if a process died because of SIGALM it's a timeout
1 parent d9ba8c5 commit c702321

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,13 @@ def add_result(
220220
+ process_result.stderr
221221
)
222222

223+
probable_result = TestResult.PROCESS_ERROR
224+
if process_result.returncode == -signal.SIGALRM:
225+
probable_result = TestResult.TIMEOUT_ERROR
226+
223227
add_result(
224228
new_results,
225-
TestResult.PROCESS_ERROR,
229+
probable_result,
226230
"\n".join(test_results),
227231
process_result.returncode,
228232
)

0 commit comments

Comments
 (0)