diff options
author | Dick Marinus <dick@mrns.nl> | 2019-01-22 19:18:39 +0100 |
---|---|---|
committer | Dick Marinus <dick@mrns.nl> | 2019-01-22 19:18:39 +0100 |
commit | a88c693c49feb9c9b9fe253e1e35adb10af2efa5 (patch) | |
tree | 2eabe3cccb5e298fdb5c81eb66dbcade70c54d75 /tests/features/steps/wrappers.py | |
parent | 9306d94bf0838219fe885d6fe4303aa44c8c0125 (diff) |
fixup! Clean up and add behave logging (#956)
Diffstat (limited to 'tests/features/steps/wrappers.py')
-rw-r--r-- | tests/features/steps/wrappers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/features/steps/wrappers.py b/tests/features/steps/wrappers.py index b553a3f1..0aac3c5d 100644 --- a/tests/features/steps/wrappers.py +++ b/tests/features/steps/wrappers.py @@ -56,6 +56,8 @@ def run_cli(context, run_args=None): cmd_parts = [cli_cmd] + run_args cmd = ' '.join(cmd_parts) context.cli = pexpect.spawnu(cmd, cwd=context.package_root) + context.logfile = StringIO() + context.cli.logfile = context.logfile context.exit_sent = False context.currentdb = context.conf['dbname'] context.cli.sendline('\pset pager always') |