From: Ben Pfaff Date: Wed, 5 Jan 2005 08:29:33 +0000 (+0000) Subject: Only grade mlfqs-speedup and mlfqs-priority if mlfqs-on and mlfqs-off X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b01246f0f671f8e5ac32b329b5cf62d5413f90d3;p=pintos-anon Only grade mlfqs-speedup and mlfqs-priority if mlfqs-on and mlfqs-off were tested. --- diff --git a/grading/threads/run-tests b/grading/threads/run-tests index 931edb6..4199d94 100755 --- a/grading/threads/run-tests +++ b/grading/threads/run-tests @@ -37,9 +37,11 @@ exit if $action eq 'extract'; build (); exit if $action eq 'build'; -run_and_grade_tests (); -grade_mlfqs_speedup (); -grade_mlfqs_priority (); +run_and_grade_tests (); +if (defined ($result{'mlfqs-on'}) && defined ($result{'mlfqs-off'})) { + grade_mlfqs_speedup (); + grade_mlfqs_priority (); +} write_grades (); write_details (); exit if $action eq 'test';