diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-03-05 03:49:50 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-03-05 03:49:50 +0100 |
commit | f26b40a92553863bc0da39918ff19bf21199c608 (patch) | |
tree | 83ceb362eb82d71880a54e694e93b1498aae04fb /selftest/run.py | |
parent | a6a84566466a59fc954268ebd616ef1af4b347b1 (diff) | |
download | samba-f26b40a92553863bc0da39918ff19bf21199c608.tar.gz samba-f26b40a92553863bc0da39918ff19bf21199c608.tar.bz2 samba-f26b40a92553863bc0da39918ff19bf21199c608.zip |
selftest.run: Factor out exported_envvars_str.
Diffstat (limited to 'selftest/run.py')
-rw-r--r-- | selftest/run.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/selftest/run.py b/selftest/run.py index 25f3e5d7c9..20ede65532 100644 --- a/selftest/run.py +++ b/selftest/run.py @@ -68,3 +68,12 @@ def expand_command_run(cmd, supports_loadfile, supports_idlist, subtests=None): "Running subtests requested, but command does not support " "this.") return (cmd, None) + + +def exported_envvars_str(vars, names): + out = "" + for n in names: + if not n in vars: + continue + out += "%s=%s\n" % (n, vars[n]) + return out |