Skip to content

Commit

Permalink
Merging pull request 117
Browse files Browse the repository at this point in the history
Signed-off-by: Lukáš Doktor <[email protected]>

* github.com:autotest/aexpect:
  Avoid printing line when output_func not set
ldoktor committed Feb 16, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 6a38d23 + 829623d commit 5b7a179
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aexpect/client.py
Original file line number Diff line number Diff line change
@@ -675,10 +675,11 @@ def _print_line(text):
else:
# No output is available right now; flush the bfr
if bfr:
_print_line(bfr)
if self.output_func:
_print_line(bfr)
bfr = ""
# The process terminated; print any remaining output
if bfr:
if bfr and self.output_func:
_print_line(bfr)
# Get the exit status, print it and send it to termination_func
status = self.get_status()

0 comments on commit 5b7a179

Please sign in to comment.