diff options
Diffstat (limited to 'selftest/target/Samba3.pm')
-rwxr-xr-x | selftest/target/Samba3.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index e4a2417c6ac..e4adecb923d 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -166,7 +166,9 @@ sub check_env($$) sub setup_env($$$) { my ($self, $envname, $path) = @_; - + + $ENV{ENVNAME} = $envname; + if (defined($self->{vars}->{$envname})) { return $self->{vars}->{$envname}; } @@ -643,6 +645,8 @@ sub check_or_start($$$$$) { $ENV{UID_WRAPPER} = "1"; + $ENV{ENVNAME} = "$ENV{ENVNAME}.nmbd"; + if ($nmbd ne "yes") { $SIG{USR1} = $SIG{ALRM} = $SIG{INT} = $SIG{QUIT} = $SIG{TERM} = sub { my $signame = shift; @@ -693,6 +697,8 @@ sub check_or_start($$$$$) { $ENV{UID_WRAPPER} = "1"; + $ENV{ENVNAME} = "$ENV{ENVNAME}.winbindd"; + if ($winbindd ne "yes") { $SIG{USR1} = $SIG{ALRM} = $SIG{INT} = $SIG{QUIT} = $SIG{TERM} = sub { my $signame = shift; @@ -745,6 +751,8 @@ sub check_or_start($$$$$) { $ENV{UID_WRAPPER} = "1"; + $ENV{ENVNAME} = "$ENV{ENVNAME}.smbd"; + if ($smbd ne "yes") { $SIG{USR1} = $SIG{ALRM} = $SIG{INT} = $SIG{QUIT} = $SIG{TERM} = sub { my $signame = shift; |