Skip to content

Commit

Permalink
Remove output limits.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Jul 22, 2024
1 parent f182e74 commit 3948726
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,14 @@ def run_playbook(playbook, allow_failures=False):
# shows all important information. At least 15 lines of stdout
# (Ansible tasks) and remaining from stderr to fill up to
# maxlen size.
maxlen = 2000
factor = maxlen / (len(_stdout) + len(_stderr))
stdout = _truncate(_stdout.splitlines(),
int(factor * len(_stdout)),
minlines=15)
stderr = _truncate(_stderr.splitlines(), maxlen - len(stdout))
# maxlen = 2000
# factor = maxlen / (len(_stdout) + len(_stderr))
# stdout = _truncate(_stdout.splitlines(),
# int(factor * len(_stdout)),
# minlines=15)
# stderr = _truncate(_stderr.splitlines(), maxlen - len(stdout))
stdout = _stdout.splitlines()
stderr = _stderr.splitlines()

assert_msg = "\n".join(
[
Expand Down

0 comments on commit 3948726

Please sign in to comment.