mirror of
https://github.com/powerline/powerline.git
synced 2025-07-23 22:05:43 +02:00
Also move arguments list out of the try body
This commit is contained in:
parent
3d0f168806
commit
519f08541b
@ -268,15 +268,9 @@ def main(attempts=3):
|
|||||||
})),
|
})),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
args = [
|
||||||
try:
|
# Specify full path to tmux socket (testing tmux instance must not
|
||||||
p = ExpectProcess(
|
# interfere with user one)
|
||||||
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,
|
'-S', socket_path,
|
||||||
# Force 256-color mode
|
# Force 256-color mode
|
||||||
'-2',
|
'-2',
|
||||||
@ -288,7 +282,14 @@ def main(attempts=3):
|
|||||||
'new-session', 'bash --norc --noprofile -i', ';',
|
'new-session', 'bash --norc --noprofile -i', ';',
|
||||||
'new-window', 'bash --norc --noprofile -i', ';',
|
'new-window', '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=args,
|
||||||
cwd=VTERM_TEST_DIR,
|
cwd=VTERM_TEST_DIR,
|
||||||
env=env,
|
env=env,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user