From 519f08541bafb98ee0d7743e799379fe3f50136b Mon Sep 17 00:00:00 2001 From: Foo Date: Sun, 30 Apr 2017 05:07:25 +0300 Subject: [PATCH] Also move arguments list out of the try body --- tests/test_in_vterm/test_tmux.py | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/tests/test_in_vterm/test_tmux.py b/tests/test_in_vterm/test_tmux.py index feb564cf..7e1c1c6f 100755 --- a/tests/test_in_vterm/test_tmux.py +++ b/tests/test_in_vterm/test_tmux.py @@ -268,27 +268,28 @@ def main(attempts=3): })), ), ) + args = [ + # Specify full path to tmux socket (testing tmux instance must not + # interfere with user one) + '-S', socket_path, + # Force 256-color mode + '-2', + # Request verbose logging just in case + '-v', + # Specify configuration file + '-f', conf_file, + # Run bash three times + 'new-session', 'bash --norc --noprofile -i', ';', + 'new-window', 'bash --norc --noprofile -i', ';', + 'new-window', 'bash --norc --noprofile -i', ';', + ] try: p = ExpectProcess( lib=lib, dim=dim, cmd=tmux_exe, - args=[ - # Specify full path to tmux socket (testing tmux instance must - # not interfere with user one) - '-S', socket_path, - # Force 256-color mode - '-2', - # Request verbose logging just in case - '-v', - # Specify configuration file - '-f', conf_file, - # Run bash three times - 'new-session', 'bash --norc --noprofile -i', ';', - 'new-window', 'bash --norc --noprofile -i', ';', - 'new-window', 'bash --norc --noprofile -i', ';', - ], + args=args, cwd=VTERM_TEST_DIR, env=env, )