-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* ensure that any stdout data produced by the child after the last `expect()` call is consumed Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
- Loading branch information
1 parent
c311e81
commit c129775
Showing
3 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
test/fixtures/projects/pexpect_timeout_data_loss/project/pb.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# part of the regression test for https://github.com/ansible/ansible-runner/issues/1330 | ||
|
||
- hosts: localhost | ||
gather_facts: no | ||
tasks: | ||
# sleep significantly longer than the configured pexpect timeout; the cancel callback will inject | ||
# additional delay before the next process status sampling interval that can cause further output to be lost; | ||
# if all is well, we'll do another loop over the child output until it's all been consumed... | ||
- raw: sleep 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters