From 32f3bdda8163b73683308af64447203e0f4c6fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99-Iulian=20ARGINT?= <dragos.argint@stud.acs.upb.ro> Date: Wed, 10 May 2023 21:10:26 +0300 Subject: [PATCH] Make checker output partial results when timeout exceeds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: DragoČ-Iulian ARGINT <dragos.argint@stud.acs.upb.ro> --- checker/checker.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/checker/checker.sh b/checker/checker.sh index 9f6125c..d8c4022 100755 --- a/checker/checker.sh +++ b/checker/checker.sh @@ -69,6 +69,11 @@ timeout_exceeded() echo "" echo "TIMEOUT EXCEEDED !!! killing the process" if [[ $RECOVER_GRADE_TIMEOUT == 0 ]]; then + if [ -f $output ]; then + echo "$output not available" + else + cat $output + fi echo "The Recover Grade Timeout option is not set! Please contact a teaching assistant!" else recover_grade_from_timeout $output -- GitLab