1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

selftest:S4: do not add 'env python' multiple times'

While we have no sane reason to use

VALGRIND_PROVISION=1 GDB_PROVISION=1 make test...

we will soon gain PY_DEV_PROVISION, which could be useful in tandem
with valgrind, rr, or gdb, and this will allow that.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Douglas Bagnall 2024-09-18 13:38:52 +12:00 committed by Douglas Bagnall
parent 4fcdb01808
commit 9a332b4feb

View File

@ -672,18 +672,17 @@ sub provision_raw_prepare($$$$$$$$$$$$$$)
push (@provision_options, "OPENSSL_FORCE_FIPS_MODE=1");
}
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{GDB_PROVISION}) ||
defined($ENV{VALGRIND_PROVISION})) {
if (defined($ENV{GDB_PROVISION})) {
push (@provision_options, "gdb --args");
}
if (defined($ENV{VALGRIND_PROVISION})) {
push (@provision_options, "valgrind");
}
}
if (defined($ENV{VALGRIND_PROVISION})) {
push (@provision_options, "valgrind");
if (!defined($ENV{PYTHON})) {
push (@provision_options, "env");
push (@provision_options, "python");
push (@provision_options, "env");
push (@provision_options, "python");
}
}