1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

selftest: Make plugin_s4_dc set the cached environment correctly

This commit is contained in:
Andrew Bartlett 2012-02-15 16:08:05 +11:00
parent a8a83611f0
commit e1f9fb79c7

View File

@ -1659,18 +1659,20 @@ sub setup_plugin_s4_dc($$)
my ($self, $path) = @_;
my $env = $self->provision_plugin_s4_dc($path);
if (defined $env) {
$self->check_or_start($env, "single");
$self->wait_for_start($env);
my $s3_part_env = $self->{target3}->setup_plugin_s4_dc($path, $env, 30);
if (not defined($s3_part_env)) {
return undef;
}
$self->{vars}->{plugin_s4_dc} = $s3_part_env;
unless ($env) {
return undef;
}
$self->check_or_start($env, "single");
$self->wait_for_start($env);
my $s3_part_env = $self->{target3}->setup_plugin_s4_dc($path, $env, 30);
unless ($s3_part_env) {
return undef;
}
$self->{vars}->{plugin_s4_dc} = $env;
return $env;
}