selftest: Abort if we fail to startup testenv with '--one' option
authorTim Beale <timbeale@catalyst.net.nz>
Mon, 18 Feb 2019 02:34:51 +0000 (15:34 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 19 Feb 2019 23:37:14 +0000 (00:37 +0100)
commitbcd007532820a077320fe21f246c5ba0195e87d5
treebc1d8091c69063bb479983f1fb1b51fb9266d5e5
parentec51bfca4e77e57d81c0a7ed8e1fecb83d8aecfc
selftest: Abort if we fail to startup testenv with '--one' option

The --one selftest.pl option means abort when the first test fails.
However, when 'make test' fails to startup a testenv, it'll try to
continue and run other tests by default. When '--one' is used,
selftest.pl can just die() at that point.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/selftest.pl