accounts=None,
dns_rate=0,
duration=None,
+ stop_on_any_error=False,
**kwargs):
context = ReplayContext(server=host,
print(("process %d finished conversation %d;"
" %d to go" %
(pid, c, len(children))), file=sys.stderr)
+ if stop_on_any_error and status != 0:
+ break
except Exception:
print("EXCEPTION in parent", file=sys.stderr)
help='Clean up the generated groups and user accounts')
parser.add_option('--random-seed', type='int', default=None,
help='Use to keep randomness consistent across multiple runs')
-
+ parser.add_option('--stop-on-any-error',
+ action="store_true",
+ help='abort the whole thing if a child fails')
model_group = optparse.OptionGroup(parser, 'Traffic Model Options',
'These options alter the traffic '
'generated by the model')
base_dn=ldb.domain_dn(),
ou=traffic.ou_name(ldb, opts.instance_id),
tempdir=tempdir,
+ stop_on_any_error=opts.stop_on_any_error,
domain_sid=ldb.get_domain_sid())
if opts.timing_data == '-':