Let test-network.sh tolerate some number of failures

This had been part of legacy/trac#29280 (moved), but teor notes correctly that it should be part of Chutney's test-network.sh