1
0
Fork 0

fixup! Clean up and add behave logging (#956)

This commit is contained in:
Dick Marinus 2019-01-22 19:18:39 +01:00
parent 9306d94bf0
commit a88c693c49
2 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,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`_)
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')