selftest: Use Python provision for Samba 4 by default.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 10 Jan 2008 16:48:52 +0000 (17:48 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 10 Jan 2008 16:48:52 +0000 (17:48 +0100)
source/selftest/env/Samba4.pm

index 61edeb388548d7601b3b186dce619b9f83489b20..aacf3c3802a54e218a55f87f04962424bca86f45 100644 (file)
@@ -654,12 +654,12 @@ nogroup:x:65534:nobody
        my @provision_options = ();
        push (@provision_options, "NSS_WRAPPER_PASSWD=\"$nsswrap_passwd\"");
        push (@provision_options, "NSS_WRAPPER_GROUP=\"$nsswrap_group\"");
-       if (defined($ENV{PROVISION_PYTHON})) {
-               push (@provision_options, "$self->{bindir}/smbpython");
-               push (@provision_options, "$self->{setupdir}/provision.py");
-       } else {
+       if (defined($ENV{PROVISION_EJS})) {
                push (@provision_options, "$self->{bindir}/smbscript");
                push (@provision_options, "$self->{setupdir}/provision");
+       } else {
+               push (@provision_options, "$self->{bindir}/smbpython");
+               push (@provision_options, "$self->{setupdir}/provision.py");
        }
        push (@provision_options, split(' ', $configuration));
        push (@provision_options, "--host-name=$netbiosname");