Mercurial > ~astiob > upreckon > hgweb
annotate zipfiles/diff.sh @ 205:166a23999bf7
Added confvar okexitcodemask; changed the validator protocol
Callable validators now return three-tuples (number granted, bool correct,
str comment) instead of two-tuples (number granted, str comment). They are
still allowed to return single numbers.
Callable validators must now explicitly raise
upreckon.exceptions.WrongAnswer if they want the verdict to be Wrong
Answer rather than Partly Correct.
okexitcodemask specifies a bitmask ANDed with the exit code of the
external validator to get a boolean flag showing whether the answer is to
be marked as 'OK' rather than 'partly correct'. The bits covered by the
bitmask are reset to zeroes before devising the number of points granted
from the resulting number.
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Wed, 17 Aug 2011 20:44:54 +0300 |
parents | 6e6b0ea63fa1 |
children |
rev | line source |
---|---|
192
6e6b0ea63fa1
Added zipfiles/diff.sh to the repository
Oleg Oshmyan <chortos@inbox.lv>
parents:
diff
changeset
|
1 #!/bin/sh |
6e6b0ea63fa1
Added zipfiles/diff.sh to the repository
Oleg Oshmyan <chortos@inbox.lv>
parents:
diff
changeset
|
2 exec diff -F'^ *[cd][le][af]' "$@" |