Spaces:
Runtime error
Runtime error
Update execute.py
Browse files- execute.py +1 -1
execute.py
CHANGED
@@ -84,7 +84,7 @@ def unsafe_execute(check_program, output, task_id, result, timeout):
|
|
84 |
exit_code = p.returncode
|
85 |
if stderrdata != '':
|
86 |
raise BaseException(stderrdata)
|
87 |
-
if stdoutdata.
|
88 |
result.append("passed")
|
89 |
else:
|
90 |
result.append("not passed")
|
|
|
84 |
exit_code = p.returncode
|
85 |
if stderrdata != '':
|
86 |
raise BaseException(stderrdata)
|
87 |
+
if stdoutdata.lstrip().rstrip() == output[task_id].lstrip().rstrip():
|
88 |
result.append("passed")
|
89 |
else:
|
90 |
result.append("not passed")
|