selftest: Add helper function to create exports file for a testenv
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 26 Feb 2019 02:52:28 +0000 (15:52 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 12 Mar 2019 01:53:26 +0000 (01:53 +0000)
commitd192ba4e0bd82020ca0f34c620a64e616378524c
tree3beb190720e7f9f7f14fa4939b83cbcc15751a98
parent0dbb923881a66b1e6b499b5b59103aea58ae0be6
selftest: Add helper function to create exports file for a testenv

This writes out the environment variables that are normally setup in the
testenv xterm to a file. This allows them to be sourced later.

This function is currently unused. However, it provides an alternative
replacement for the selftest-vars.sh script (which is really out of
date). I do plan to make use of this function in a subsequent patch-set.

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