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 87964a2..73b73ca 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;