dsdb sort test: avoid exception with fewer elements
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Mon, 21 Mar 2016 21:25:27 +0000 (10:25 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 22 Mar 2016 07:00:31 +0000 (08:00 +0100)
commit52975b046c1c40721bb68dca8ea9d4a5c19da099
tree9b25a5600eff507da7ee36b6b59a00d1b797bd9a
parent0edb3da532e770980bbbf87b8afbd4f463773ed2
dsdb sort test: avoid exception with fewer elements

The FIENDISH_TESTS list has 33 members, and when the number of
elements being tested is less than that (because you run the script
with, say, --elements=20) some will have a zero count. A recent fix
for Python 2.6 didn't take these possible zeros into account.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/dsdb/tests/python/sort.py