summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-10-18 22:11:40 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-10-18 11:13:04 +0000
commitf4c82c621de73bdaee7a4a9e8598ea41ec208256 (patch)
tree10a27ca82c067463f4c848f4c0a05b65a0709c6d
parent48c54f9ec879b5ffedfe91d52202bff3d2ef1eff (diff)
downloadsamba-f4c82c621de73bdaee7a4a9e8598ea41ec208256.tar.gz
samba-f4c82c621de73bdaee7a4a9e8598ea41ec208256.tar.xz
samba-f4c82c621de73bdaee7a4a9e8598ea41ec208256.zip
s4-selftest Make GDB_PROVISION work again
gdb --args won't run the #!/usr/bin/evn python Andrew Bartlett
-rw-r--r--selftest/target/Samba4.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index 574c015a111..ba96f08d0d1 100644
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -529,9 +529,17 @@ sub provision_raw_prepare($$$$$$$$$$)
push (@provision_options, "NSS_WRAPPER_GROUP=\"$ctx->{nsswrap_group}\"");
if (defined($ENV{GDB_PROVISION})) {
push (@provision_options, "gdb --args");
+ if (!defined($ENV{PYTHON})) {
+ push (@provision_options, "env");
+ push (@provision_options, "python");
+ }
}
if (defined($ENV{VALGRIND_PROVISION})) {
push (@provision_options, "valgrind");
+ if (!defined($ENV{PYTHON})) {
+ push (@provision_options, "env");
+ push (@provision_options, "python");
+ }
}
if (defined($ENV{PYTHON})) {
push (@provision_options, $ENV{PYTHON});