Mercurial > ~astiob > upreckon > hgweb
comparison test.py @ 6:b0034b18f942
maxexitcode now gets on with test groups
This includes the implied single-test-case groups.
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Sun, 14 Feb 2010 00:17:43 +0000 |
parents | eb15a5a9b026 |
children | ed90b375d197 |
comparison
equal
deleted
inserted
replaced
5:eb15a5a9b026 | 6:b0034b18f942 |
---|---|
862 scoregrp += actualpoints | 862 scoregrp += actualpoints |
863 ncorrectgrp += 1 | 863 ncorrectgrp += 1 |
864 if npoints: | 864 if npoints: |
865 ncorrectvalued += 1 | 865 ncorrectvalued += 1 |
866 if ntotalgrp: | 866 if ntotalgrp: |
867 if scoregrp < maxpointsgrp: | 867 if ncorrectgrp < ntotalgrp: |
868 scoregrp = 0 | 868 scoregrp = 0 |
869 if ntotalgrp > 1: | 869 if ntotalgrp > 1: |
870 print 'Group total: %d/%d tests; %g/%g points' % (ncorrectgrp, ntotalgrp, scoregrp, maxpointsgrp) | 870 print 'Group total: %d/%d tests; %g/%g points' % (ncorrectgrp, ntotalgrp, scoregrp, maxpointsgrp) |
871 sys.stdout.flush() | 871 sys.stdout.flush() |
872 ncorrect += ncorrectgrp | 872 ncorrect += ncorrectgrp |