Do not reuse existing socket paths

This commit is contained in:
Foo 2017-04-30 03:40:21 +03:00
parent e19feb9472
commit b93ae8e8a2
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ def get_expected_result(tmux_version,
def main(attempts=3):
vterm_path = os.path.join(VTERM_TEST_DIR, 'path')
socket_path = os.path.abspath('tmux-socket-{0}'.format(attempts))
while os.path.exists(socket_path):
socket_path = socket_path + 'x'
rows = 50
cols = 200