git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
selftest.run: Factor out exported_envvars_str.
[ira/wip.git]
/
selftest
/
run.py
diff --git
a/selftest/run.py
b/selftest/run.py
index 25f3e5d7c91b4c4ef889b512a3a3c27266a5706d..20ede655321e2d98e88a4f37fdac0c7bad446761 100644
(file)
--- 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