1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

selftest:S4: use PY_DEV_PROVISION for python dev-mode

Maybe we could look also at other -X options and -v.

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:52:17 +12:00 committed by Douglas Bagnall
parent 4f57365a1e
commit 0031a82478

View File

@ -674,6 +674,7 @@ sub provision_raw_prepare($$$$$$$$$$$$$$)
if (defined($ENV{GDB_PROVISION}) ||
defined($ENV{RR_PROVISION}) ||
defined($ENV{PY_DEV_PROVISION}) ||
defined($ENV{VALGRIND_PROVISION})) {
if (defined($ENV{GDB_PROVISION})) {
push (@provision_options, "gdb --args");
@ -688,6 +689,11 @@ sub provision_raw_prepare($$$$$$$$$$$$$$)
push (@provision_options, "env");
push (@provision_options, "python");
}
if (defined($ENV{PY_DEV_PROVISION})) {
# makes Python more likely to emit warnings
# and debug info.
push (@provision_options, "-X dev");
}
}
my $samba_tool = Samba::bindir_path($self, "samba-tool");