diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2019-05-14 00:01:20 -0700 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2019-05-14 00:01:20 -0700 |
commit | 004f62e714ee64e908431e357009ed7bdf4eb85f (patch) | |
tree | 0840118c431cd82df1350453fd91c28777985ef5 /tests/features/steps/wrappers.py | |
parent | a45c67acf0f8e46c88d8e02daaae37b2ac48d031 (diff) |
Add some behavioral tests for command line options.
Diffstat (limited to 'tests/features/steps/wrappers.py')
-rw-r--r-- | tests/features/steps/wrappers.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/features/steps/wrappers.py b/tests/features/steps/wrappers.py index 66dd483c..11809b30 100644 --- a/tests/features/steps/wrappers.py +++ b/tests/features/steps/wrappers.py @@ -49,7 +49,7 @@ def expect_pager(context, expected, timeout): context.conf['pager_boundary'], expected), timeout=timeout) -def run_cli(context, run_args=None): +def run_cli(context, run_args=None, prompt_check=True): """Run the process using pexpect.""" run_args = run_args or [] cli_cmd = context.conf.get('cli_command') @@ -61,7 +61,8 @@ def run_cli(context, run_args=None): context.exit_sent = False context.currentdb = context.conf['dbname'] context.cli.sendline('\pset pager always') - wait_prompt(context) + if prompt_check: + wait_prompt(context) def wait_prompt(context): |