selftest: Convert backup/restore testenvs to use default
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 30 Jan 2019 23:45:31 +0000 (12:45 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 1 Feb 2019 02:36:16 +0000 (03:36 +0100)
These testenvs shouldn't be dependent on the process model at all, so we
should be able to convert them to the new default without any
repercussions.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/target/Samba4.pm

index b4f3cab3abf9ec14e3d1a8b37d5d1ae26d8172c1..ea9d09938fedfc1a072342ff0b1333bc94781689 100755 (executable)
@@ -2894,7 +2894,7 @@ sub setup_backupfromdc
                return undef;
        }
 
-       if (not defined($self->check_or_start($env, "standard"))) {
+       if (not defined($self->check_or_start($env))) {
            return undef;
        }
 
@@ -3104,7 +3104,7 @@ sub setup_restoredc
        }
 
        # start samba for the restored DC
-       if (not defined($self->check_or_start($env, "standard"))) {
+       if (not defined($self->check_or_start($env))) {
            return undef;
        }
 
@@ -3146,7 +3146,7 @@ sub setup_renamedc
        }
 
        # start samba for the restored DC
-       if (not defined($self->check_or_start($env, "standard"))) {
+       if (not defined($self->check_or_start($env))) {
            return undef;
        }
 
@@ -3195,7 +3195,7 @@ sub setup_offlinebackupdc
        Samba::mk_krb5_conf($ctx);
 
        # start samba for the restored DC
-       if (not defined($self->check_or_start($env, "standard"))) {
+       if (not defined($self->check_or_start($env))) {
            return undef;
        }
 
@@ -3250,7 +3250,7 @@ sub setup_labdc
        }
 
        # start samba for the restored DC
-       if (not defined($self->check_or_start($env, "standard"))) {
+       if (not defined($self->check_or_start($env))) {
            return undef;
        }
 
@@ -3348,7 +3348,7 @@ sub setup_customdc
        Samba::mk_krb5_conf($ctx);
 
        # start samba for the restored DC
-       if (not defined($self->check_or_start($env, "standard"))) {
+       if (not defined($self->check_or_start($env))) {
            return undef;
        }