Skip to content

Commit

Permalink
Generate .log file after TLE / OOM (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwakftw authored Sep 11, 2020
1 parent 2439d30 commit e2b3b71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/main_tester.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ run_submission() {
VERDICT=""
if [ "$TIMEOUT" = true ] ; then
VERDICT=$(error_code_to_string $TLE ${TID})
echo "Time limit exceeded" > ${TMP}/sub_run_${SID}_${TID}.log
elif [ "$MEMOUT" = true ] ; then
VERDICT=$(error_code_to_string $OOM ${TID})
echo "Memory limit exceeded" > ${TMP}/sub_run_${SID}_${TID}.log
else
clean_generated_output ${SID} ${TID} # Delete the generated file to prevent any mismatch
${SUB_FDR}/submission_${SID} < ${TEST_FDR}/inputfile_${TID}.txt > ${TMP}/sub_output_${SID}_${TID}.txt 2> ${TMP}/sub_run_${SID}_${TID}.log
Expand Down

0 comments on commit e2b3b71

Please sign in to comment.