# HG changeset patch # User Oleg Oshmyan # Date 1266108687 0 # Node ID ed90b375d19780fdcdb674cf47235f556f94b09f # Parent ddc9aa02007bdb2b59923ee15b557570cdac8a29 Award maxexitcode points by default The default number of points allocated per test case is now maxexitcode if it is set and is an integer (so that all given points are integers as well). diff -r ddc9aa02007b -r ed90b375d197 test.py --- a/test.py Sun Feb 14 00:24:13 2010 +0000 +++ b/test.py Sun Feb 14 00:51:27 2010 +0000 @@ -618,6 +618,9 @@ pointmap = newpointmap + if not tester: + maxexitcode = 0 + if maxtime > 0: strmaxtime = '/%.3f' % maxtime else: @@ -701,7 +704,7 @@ s = s.zfill(paddummieswithzeroestolength) spref = 'sample ' else: - npoints = pointmap.get(None, 1) + npoints = pointmap.get(None, maxexitcode if maxexitcode and isinstance(maxexitcode, int) else 1) npoints = pointmap.get(i, npoints) maxpointsgrp += npoints if npoints: