Only grade mlfqs-speedup and mlfqs-priority if mlfqs-on and mlfqs-off
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 5 Jan 2005 08:29:33 +0000 (08:29 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 5 Jan 2005 08:29:33 +0000 (08:29 +0000)
were tested.

grading/threads/run-tests

index 931edb6022bada88172a518e6612c2ca87853ae3..4199d94214f09b9b61348ff487f620937ea39dcd 100755 (executable)
@@ -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';