From 40b67c3426042ea46d2497e459807ef9551e62f1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 30 Jan 2009 20:38:27 +0100 Subject: [PATCH] selftest: pass down the path to python for provisioning samba4 metze --- selftest/target/Samba4.pm | 3 +++ source4/selftest/config.mk | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm index 208824d6b2c..5ca1a6a3055 100644 --- a/selftest/target/Samba4.pm +++ b/selftest/target/Samba4.pm @@ -717,6 +717,9 @@ nogroup:x:65534:nobody if (defined($ENV{VALGRIND_PROVISION})) { push (@provision_options, "valgrind"); } + if (defined($ENV{PYTHON})) { + push (@provision_options, $ENV{PYTHON}); + } push (@provision_options, "$self->{setupdir}/provision"); push (@provision_options, split(' ', $configuration)); push (@provision_options, "--host-name=$netbiosname"); diff --git a/source4/selftest/config.mk b/source4/selftest/config.mk index c5f7c5adb43..324532c22a7 100644 --- a/source4/selftest/config.mk +++ b/source4/selftest/config.mk @@ -1,6 +1,7 @@ TEST_FORMAT = plain -SELFTEST = $(LD_LIBPATH_OVERRIDE) $(PERL) $(selftestdir)/selftest.pl --prefix=${selftest_prefix} \ +SELFTEST = $(LD_LIBPATH_OVERRIDE) PYTHON=$(PYTHON) \ + $(PERL) $(selftestdir)/selftest.pl --prefix=${selftest_prefix} \ --builddir=$(builddir) --srcdir=$(srcdir) \ --expected-failures=$(srcdir)/selftest/knownfail \ --format=$(TEST_FORMAT) \