selftest: skip plugin_s4_dc if we do not have ADS
authorAndrew Bartlett <abartlet@samba.org>
Thu, 16 Feb 2012 04:12:49 +0000 (15:12 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 16 Feb 2012 04:21:10 +0000 (15:21 +1100)
selftest/target/Samba4.pm

index 87964a265c3561188b77cb48940f4e79ebfa1f19..73b73cab082389a129488a8a9b57cc6e3f2ffa72 100644 (file)
@@ -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;