Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion local_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
"""

server_version = "SimpleHTTP/" + __version__
default_timeout = '10s'

def __init__(self, *args, directory=None, **kwargs):
if directory is None:
Expand Down Expand Up @@ -1087,7 +1088,7 @@ def run_tests_for_zip(self, zip_file_path, hw_num):
#
try:
result += subprocess.check_output(
f'./herd_checker_run.sh {exec_path} {tmpdirname} {hw_num} 2>&1', shell=True).decode()
f'timeout {self.default_timeout} ./herd_checker_run.sh {exec_path} {tmpdirname} {hw_num} 2>&1', shell=True).decode()
except subprocess.CalledProcessError as e:
return (False, e.output.decode())

Expand Down