1
0
Fork 0

Merge pull request #1001 from dbcli/internal/add_behave_logging

Missed logfile for earlier clean up and add behave logging changes
This commit is contained in:
Amjith Ramanujam 2019-01-22 10:46:31 -08:00 committed by GitHub
commit 3eff3bbebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -6,6 +6,12 @@ Bug fixes:
* Avoid error message on the server side if hstore extension is not installed in the current database (#991). (Thanks: `Marcin Cieślak`_)
* All pexpect submodules have been moved into the pexpect package as of version 3.0. Use pexpect.TIMEOUT (Thanks: `Marcin Cieślak`_)
Internal:
---------
* (Fixup) Clean up and add behave logging. (Thanks: `Marcin Cieślak`_, `Dick Marinus`_)
* Override VISUAL environment variable for behave tests. (Thanks: `Marcin Cieślak`_)
2.0.2:
======

View File

@ -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')