1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

selftest: create a pcap file for the environment setup

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2019-11-14 17:36:36 +01:00
parent f182c9a36b
commit 7d1b560804

View File

@ -116,7 +116,10 @@ sub setup_env($$$)
my $setup_name = $ENV_TARGETS{$envname}."::setup_".$envname;
my $setup_sub = \&$setup_name;
my $setup_pcap_file = $self->setup_pcap("env-$ENV{ENVNAME}-setup");
my $env = &$setup_sub($target, "$path/$envname", @dep_vars);
$self->cleanup_pcap($setup_pcap_file, not defined($env));
SocketWrapper::setup_pcap(undef);
if (not defined($env)) {
warn("failed to start up environment '$envname'");