giulio98 commited on
Commit
fe5916b
1 Parent(s): 9c29da7

Update execute.py

Browse files
Files changed (1) hide show
  1. 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.strip() == output[task_id].strip():
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")