From e2b3b71cf7769362b40b3e18f1772c1a85521aa6 Mon Sep 17 00:00:00 2001 From: Vishwak Srinivasan Date: Fri, 11 Sep 2020 17:14:20 -0400 Subject: [PATCH] Generate .log file after TLE / OOM (#93) --- content/main_tester.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/main_tester.sh b/content/main_tester.sh index 5b23c40..6067a08 100755 --- a/content/main_tester.sh +++ b/content/main_tester.sh @@ -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