summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2019-01-22 10:46:31 -0800
committerGitHub <noreply@github.com>2019-01-22 10:46:31 -0800
commit3eff3bbebd477a95c3a78fa54e876e1ca56805f0 (patch)
tree9cf94c5bf913e4ce89c633e39aa13bd6d569d490 /tests
parent806532b496ee7a3ffe732081ba418dd3f42986b6 (diff)
parenta88c693c49feb9c9b9fe253e1e35adb10af2efa5 (diff)
Merge pull request #1001 from dbcli/internal/add_behave_logging
Missed logfile for earlier clean up and add behave logging changes
Diffstat (limited to 'tests')
-rw-r--r--tests/features/steps/wrappers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/features/steps/wrappers.py b/tests/features/steps/wrappers.py
index 31e6c46d..66dd483c 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')