summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
Diffstat (limited to 'selftest')
-rw-r--r--selftest/target/Samba4.pm22
1 files changed, 12 insertions, 10 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index 8ac3ee7eaf..1838a893c5 100644
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -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;
- }
+ unless ($env) {
+ return undef;
+ }
- $self->{vars}->{plugin_s4_dc} = $s3_part_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);
+ unless ($s3_part_env) {
+ return undef;
}
+
+ $self->{vars}->{plugin_s4_dc} = $env;
return $env;
}