diff options
-rwxr-xr-x | selftest/selftest.pl | 4 | ||||
-rwxr-xr-x | selftest/target/Samba3.pm | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl index cc947a15ed..b60b76228d 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -847,7 +847,9 @@ if ($opt_testenv) { my $testenv_vars = setup_env($testenv_name, $prefix); - die("Unable to setup environment $testenv_name") unless ($testenv_vars); + if (not $testenv_vars or $testenv_vars eq "UNKNOWN") { + die("Unable to setup environment $testenv_name"); + } $ENV{PIDDIR} = $testenv_vars->{PIDDIR}; $ENV{ENVNAME} = $testenv_name; diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 26f5e92898..20587bf94d 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -25,6 +25,7 @@ sub have_ads($) { close IN; # If we were not built with ADS support, pretend we were never even available + print "smbd does not have ADS support\n" unless $found_ads; return $found_ads; } |