Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print set env message all at once #102

Merged
merged 2 commits into from
Aug 4, 2017

Conversation

wjwwood
Copy link
Contributor

@wjwwood wjwwood commented Aug 4, 2017

Prints env "set" operation all at once, still prints appends one at a time, since that's a more natural += (accumulation) kind of action.

@wjwwood wjwwood added the in progress Actively being worked on (Kanban column) label Aug 4, 2017
@@ -130,6 +130,7 @@ def log(msg, **kwargs):
if args.env:
log('-- run_test.py: extra environment variables:')
previous_key = None
updated_env_keys = set([])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set() is sufficient. No need for the empty list argument.

@@ -152,7 +155,7 @@ def log(msg, **kwargs):
value = env[key] + ';' + env_str
else:
key, value = separate_env_vars(env_str, 'append-env', parser)
log(' - {0}={1}'.format(key, value))
log(' - {0}+={1}'.format(key, value))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will print e.g.:

 - ping+=pong
 - ping+=;pong;peng

The += is certainly helpful but it shouldn't include pong in the second line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, what about now.

@wjwwood wjwwood merged commit 00e3224 into pass_env_with_list_value Aug 4, 2017
@wjwwood wjwwood deleted the wjwwood/pass_env_with_list_value branch August 4, 2017 22:27
@wjwwood wjwwood removed the in progress Actively being worked on (Kanban column) label Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants