From 979829bf6f563cbaf9aaf83a6332a2bc79f2f581 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 17 Mar 2005 18:51:58 +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 463d475..28c438d 100644 --- a/grading/lib/Pintos/Grading.pm +++ b/grading/lib/Pintos/Grading.pm @@ -428,7 +428,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