Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mzuenni committed Jan 28, 2025
1 parent 99f9a5f commit b0e0c0b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,12 @@ def get_validator_command():
pass_id += 1
# Start the validator.
validator_command = get_validator_command()
validator_process = exec_command(
validator_process = subprocess.Popen(
validator_command,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE if validator_error is False else None,
cwd=validator_dir,
timeout=validation_time,
memory=validation_memory,
)

# Start and time the submission.
Expand All @@ -113,7 +111,7 @@ def get_validator_command():
)

# Wait
(validator_out, validator_err) = validator_process.communicate()
(validator_out, validator_err) = validator_process.communicate(timeout=validation_time)

tend = time.monotonic()
max_duration = max(max_duration, tend - tstart)
Expand Down

0 comments on commit b0e0c0b

Please sign in to comment.