projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58a1b6f
)
Improve error message for grading when the make failed.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 1 Jan 2005 02:22:27 +0000
(
02:22
+0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 1 Jan 2005 02:22:27 +0000
(
02:22
+0000)
Still not ideal.
grading/lib/Pintos/Grading.pm
patch
|
blob
|
history
diff --git
a/grading/lib/Pintos/Grading.pm
b/grading/lib/Pintos/Grading.pm
index d48b2751c92219f4a1b55f3771d0e2a9cc657cd0..36599a0afbdd9957374843f0d50ee314d629a52c 100644
(file)
--- a/
grading/lib/Pintos/Grading.pm
+++ b/
grading/lib/Pintos/Grading.pm
@@
-408,7
+408,9
@@
sub run_pintos {
# Grade the test.
sub grade_test {
# Read test output.
- my (@output) = snarf ("output/$test/run.out");
+ my ($outfile) = "output/$test/run.out";
+ die "$outfile: missing test output file (make failed?)" if ! -e $outfile;
+ my (@output) = snarf ($outfile);
# If there's a function "grade_$test", use it to evaluate the output.
# If there's a file "$GRADES_DIR/$test.exp", compare its contents