From 4a3f098f22eeab252c4014c71c55e9747b495537 Mon Sep 17 00:00:00 2001 From: Foo Date: Sun, 30 Apr 2017 02:19:47 +0300 Subject: [PATCH] Use powerline.conf as it is supposed to be used --- tests/test_in_vterm/test_tmux.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_in_vterm/test_tmux.py b/tests/test_in_vterm/test_tmux.py index 41dea86e..a7459241 100755 --- a/tests/test_in_vterm/test_tmux.py +++ b/tests/test_in_vterm/test_tmux.py @@ -160,6 +160,13 @@ def main(attempts=3): 'PYTHONPATH': os.environ.get('PYTHONPATH', ''), } + conf_path = os.path.abspath('powerline/bindings/tmux/powerline.conf') + conf_line = 'source "' + ( + conf_path.replace('\\', '\\\\').replace('"', '\\"')) + '"\n' + conf_file = os.path.realpath(os.path.join(VTERM_TEST_DIR, 'tmux.conf')) + with open(conf_file, 'w') as cf_fd: + cf_fd.write(conf_line) + try: p = ExpectProcess( lib=lib, @@ -175,7 +182,7 @@ def main(attempts=3): # Request verbose logging just in case '-v', # Specify configuration file - '-f', os.path.abspath('powerline/bindings/tmux/powerline.conf'), + '-f', conf_file, # Run bash three times 'new-session', 'bash --norc --noprofile -i', ';', 'new-window', 'bash --norc --noprofile -i', ';',