pytest/sddl: replace/export tests based on environment vars
commit77967274535c1180413619aa7d33602a82e34a5f
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 10 Aug 2023 23:08:00 +0000 (11 11:08 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 24 Aug 2023 02:53:30 +0000 (24 02:53 +0000)
treeaa2424861dd955bb339de1135861cf2d53a7fd7d
parent59a2d7410705eaa5315e4ea11325cce74ce4067e
pytest/sddl: replace/export tests based on environment vars

We had a stupid system involving test functions with side-effects,
that needed to be enabled by editing the file. Now you get the same
effects by setting environment variables, the names of which you can
only learn by reading the file closely.

This works better because some stuff needs to happen at class-time
rather than instance-time.

Also the environment variables specify the import and export locations.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/sddl.py