projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd4a59f
)
Allow decimal point in percentages.
author
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 20 Jun 2005 21:53:43 +0000
(21:53 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 20 Jun 2005 21:53:43 +0000
(21:53 +0000)
src/tests/make-grade
patch
|
blob
|
history
diff --git
a/src/tests/make-grade
b/src/tests/make-grade
index f8c1443148cd6e0b473fb14bb4d6658759823710..e6c4b9cdaad627eec2f2ab46612f7b3c43b987ce 100755
(executable)
--- a/
src/tests/make-grade
+++ b/
src/tests/make-grade
@@
-25,7
+25,7
@@
open (GRADING, '<', $grading_file) || die "$grading_file: open: $!\n";
while (<GRADING>) {
s/#.*//;
next if /^\s*$/;
- my ($max_pct, $rubric_suffix) = /^\s*(\d+)%\t(.*)/ or die;
+ my ($max_pct, $rubric_suffix) = /^\s*(\d+
(?:\.\d+)?
)%\t(.*)/ or die;
my ($dir) = $rubric_suffix =~ /^(.*)\//;
my ($rubric_file) = "$src_dir/$rubric_suffix";
open (RUBRIC, '<', $rubric_file) or die "$rubric_file: open: $!\n";