diff options
author | John Hood <cgull@glup.org> | 2017-11-07 23:17:56 -0500 |
---|---|---|
committer | John Hood <cgull@glup.org> | 2017-11-08 19:50:35 -0500 |
commit | 7cd4312dae3973a434949db190858f4cdfd72f13 (patch) | |
tree | 0a146e69572ab8620d4f7fbaf988985491f2c661 /src | |
parent | cbca234b385cb7a5e8d3c4507f637c2ac02be8f6 (diff) |
Construct socket name correctly for tmux_check()
In moving this function from e2e-test, I forgot that it depends on a
variable set there.
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/e2e-test-subrs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tests/e2e-test-subrs b/src/tests/e2e-test-subrs index b033ed8..8f2054b 100644 --- a/src/tests/e2e-test-subrs +++ b/src/tests/e2e-test-subrs @@ -116,5 +116,10 @@ tmux_check() # Use a different socket name. On Cygwin, this tmux server is # slow to exit, and the actual test tmux can attach to it, causing # problems with missing environment variables. - tmux -f /dev/null -S "${tmux_socket}c" -C new-session true + tmux_check_socket=$(mktemp -d /tmp/mosh-tmux-check.XXXXXXXX) + tmux -f /dev/null -S "${tmux_check_socket}/s" -C new-session true + rv=$? + rm ${tmux_check_socket}/s + rmdir ${tmux_check_socket} + return $rv } |