Also move arguments list out of the try body

This commit is contained in:
Foo 2017-04-30 05:07:25 +03:00
parent 3d0f168806
commit 519f08541b

View File

@ -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: try:
p = ExpectProcess( p = ExpectProcess(
lib=lib, lib=lib,
dim=dim, dim=dim,
cmd=tmux_exe, cmd=tmux_exe,
args=[ args=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', ';',
],
cwd=VTERM_TEST_DIR, cwd=VTERM_TEST_DIR,
env=env, env=env,
) )