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

If run_if throws exception (not intentionally), test will terminate with pass outcome #1203

Merged
merged 5 commits into from
Dec 11, 2024

Conversation

eli-zr
Copy link
Contributor

@eli-zr eli-zr commented Dec 11, 2024

More details are provided inside issue


This change is Reviewable

@@ -307,8 +307,10 @@ def _execute_phase_once(
try:
run_phase = phase_desc.options.run_if()
except Exception: # pylint: disable=broad-except
self.logger.debug('Phase %s stopped due to a fault in run_if function.',
phase_desc.name)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please line up the start of this line with the opening parenthesis on the previous line. Make sure you're using spaces and not tabs to do the alignment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

openhtf/core/phase_executor.py Show resolved Hide resolved
test/core/phase_executor_test.py Outdated Show resolved Hide resolved
@glados-verma glados-verma merged commit 85f5d72 into google:master Dec 11, 2024
10 checks passed
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.

2 participants