tests: Avoid hardcoding domain in test
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 11 Dec 2018 21:04:09 +0000 (10:04 +1300)
committerTim Beale <timbeale@samba.org>
Mon, 7 Jan 2019 00:23:08 +0000 (01:23 +0100)
commit7f731d7642de3b1e4cbe43dcd354f0e9dc902787
tree1dcc234371c93d3e10e2743804f35cfe2dee50d3
parentc95a869e85201f836c1579e0f50021e3ffc4cbe0
tests: Avoid hardcoding domain in test

Currently the sysvol domain directory is hard-coded, so the tests can
only ever run on the ad_dc.

This patch makes things marginally better by using the REALM
environmental variable instead. This allows us to run it against other
testenvs (like the SMBv2-only restoredc).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/smb.py