Do not use absolute path for tmux socket

Absolute path is too long when using tests in ebuild.
This commit is contained in:
ZyX 2015-02-21 15:18:59 +03:00
parent 1e85f5df15
commit d53c780071
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ def test_expected_result(p, expected_result, cols, rows, print_logs):
def main(attempts=3):
vterm_path = os.path.join(VTERM_TEST_DIR, 'path')
socket_path = os.path.join(VTERM_TEST_DIR, 'tmux-socket')
socket_path = 'tmux-socket'
rows = 50
cols = 200
@ -233,7 +233,7 @@ def main(attempts=3):
check_call([tmux_exe, '-S', socket_path, 'kill-server'], env={
'PATH': vterm_path,
'LD_LIBRARY_PATH': os.environ.get('LD_LIBRARY_PATH', ''),
})
}, cwd=VTERM_TEST_DIR)
return main(attempts=(attempts - 1))