selftest: Add TESTENV_DIR "env" variable
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 14 Mar 2019 04:38:22 +0000 (17:38 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 31 May 2019 05:18:20 +0000 (05:18 +0000)
commitc9e62513822fa5fce9ad29c164273a2db64ff18d
tree86d12a486745b8faf25bc8def9efbe3c6b4e7cb7
parent5635a7ce2fe348a3ed89ff39a02f9db135424367
selftest: Add TESTENV_DIR "env" variable

We store the testenv directory path for the 'ctx' hashmap, but not for
the testenv-vars hashmap (and that can be really annoying sometimes).
Add it into the second hashmap that selftest actually keeps track of.
Currently it's only stored in the hashmap, not actually exported as an
environment variable (but we could easily do that if a test-case need
this info).

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/target/Samba3.pm
selftest/target/Samba4.pm