-
Notifications
You must be signed in to change notification settings - Fork 90
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
Fix/empty dict to dependencies indicating all drivers start concurrently #1103
Conversation
testplan/testing/base.py
Outdated
@@ -112,7 +112,7 @@ def get_options(cls): | |||
[Or(Resource, RemoteDriver)], validate_func() | |||
), | |||
ConfigOption("dependencies", default=None): Or( | |||
Use(parse_dependency), validate_func() | |||
None, Use(parse_dependency), validate_func() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest we get rid of dependencies=None usage
it easily confuses with dependencies=[]
testplan/testing/base.py
Outdated
else: | ||
deps = self.cfg.dependencies | ||
if deps: | ||
if deps is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do a None check in set_dependency and make this piece of code simpler?
@@ -0,0 +1 @@ | |||
Users now can make all drivers of a certain ``Test`` start concurrently by passing an empty dict to ``dependencies`` argument. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update the dependencies arg doc
dependencies=dependencies, | ||
initial_context={"is_set": is_set}, | ||
environment=lambda: list(drivers.values()) | ||
if is_lift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this param named is_lift, shall we call it use_callable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😬
e54a116
to
a878002
Compare
a878002
to
512b09d
Compare
Bug / Requirement Description
Clearly and concisely describe the problem.
Solution description
Describe your code changes in detail for reviewers.
Checklist: