From a7fefbb3d10e9bcc3a9baf9d0f3b6e8b0eac83d4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 17 Mar 2005 18:52:52 +0000 Subject: [PATCH] When run.out is missing in &grade_test, just return an error that preparation failed, instead of dying. This can happen legitimately when a `pintos put' fails. --- grading/lib/Pintos/Grading.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grading/lib/Pintos/Grading.pm b/grading/lib/Pintos/Grading.pm index 6a21d52..240b16e 100644 --- a/grading/lib/Pintos/Grading.pm +++ b/grading/lib/Pintos/Grading.pm @@ -427,7 +427,7 @@ sub grade_test { $details{$test} = snarf ("output/$test/make.err"); return "make failed. Error messages at end of file."; } - die "$outfile: missing test output file"; + return "preparation for test failed"; } my (@output) = snarf ($outfile); -- 2.30.2