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

Fix steps that wait for output from commands #856

Merged
merged 3 commits into from
Jan 15, 2022
Merged

Conversation

mvz
Copy link
Contributor

@mvz mvz commented Jan 15, 2022

Summary

Fix the 'wait for output to contain' steps

Details

  • Fix implementation of steps for waiting for output
  • Add scenario to test the 'stop the command if output contains' step

Motivation and Context

Fixes #854.

How Has This Been Tested?

Three new scenarios test this functionality.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Internal change (refactoring, test improvements, developer experience or update of dependencies)

Checklist:

  • I've added tests for my code
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@mvz mvz force-pushed the fix-waiting-for-stdout branch from 86e932c to f71450d Compare January 15, 2022 19:27
By changing the printed text, the first iteration will already print
text that is not part of the echoed command. Therefore, we can trigger
termination after the first iteration instead of the second.

To avoid slower termination failing the scenario, allow for Test 1 to be
output, and just require Test 2 not to appear.
@mvz mvz merged commit cdd1a16 into main Jan 15, 2022
@mvz mvz deleted the fix-waiting-for-stdout branch January 15, 2022 22:19
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.

'Wait for output' steps are broken
1 participant