summaryrefslogtreecommitdiff
path: root/selftest/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'selftest/run.py')
-rw-r--r--selftest/run.py9
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