Commit 7a064348 authored by Denis Bilenko's avatar Denis Bilenko

greentest/util.py: fix getname() helper

parent aca345ff
...@@ -100,11 +100,10 @@ def kill(popen): ...@@ -100,11 +100,10 @@ def kill(popen):
def getname(command, env=None, setenv=None): def getname(command, env=None, setenv=None):
result = [] result = []
for key, value in sorted((env or {}).items()): env = (env or {}).copy()
if key.startswith('GEVENT_') or key.startswith('GEVENTARES_'): env.update(setenv or {})
result.append('%s=%s' % (key, value))
for key, value in sorted((setenv or {}).items()): for key, value in sorted(env.items()):
if key.startswith('GEVENT_') or key.startswith('GEVENTARES_'): if key.startswith('GEVENT_') or key.startswith('GEVENTARES_'):
result.append('%s=%s' % (key, value)) result.append('%s=%s' % (key, value))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment