summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-16 15:12:49 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-16 15:21:10 +1100
commit6917575fe3d0e34acae0d4a14a407a80c11daf99 (patch)
tree4111c6d6ab1e00d57eed11659db88abe90e7a058 /selftest
parent8ea068d70291db1d06334a2211056d7902d6fe29 (diff)
downloadsamba-6917575fe3d0e34acae0d4a14a407a80c11daf99.tar.gz
samba-6917575fe3d0e34acae0d4a14a407a80c11daf99.tar.bz2
samba-6917575fe3d0e34acae0d4a14a407a80c11daf99.zip
selftest: skip plugin_s4_dc if we do not have ADS
Diffstat (limited to 'selftest')
-rw-r--r--selftest/target/Samba4.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index 87964a265c..73b73cab08 100644
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -1662,6 +1662,11 @@ sub setup_plugin_s4_dc($$)
{
my ($self, $path) = @_;
+ # If we didn't build with ADS, pretend this env was never available
+ if (not $self->{target3}->have_ads()) {
+ return "UNKNOWN";
+ }
+
my $env = $self->provision_plugin_s4_dc($path);
unless ($env) {
return undef;