Skip to content

Commit 8ec5bc2

Browse files
Check SPJ stderr output
1 parent a4de58c commit 8ec5bc2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cyaron/graders/testlib_checker.py

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ def __call__(self, outs: str, ans: str, ins: str):
4747
stderr=subprocess.PIPE,
4848
text=True,
4949
check=False)
50+
if result.stderr.strip() != 'See file to check exit message':
51+
raise ValueError("Invalid output from checker: " +
52+
result.stderr)
5053
checker_output = result.stdout
5154

5255
result_element = xmlElementTree.fromstring(checker_output)

0 commit comments

Comments
 (0)