diff options
author | John Hood <cgull@glup.org> | 2017-05-27 21:38:30 -0400 |
---|---|---|
committer | John Hood <cgull@glup.org> | 2017-05-28 19:27:39 -0400 |
commit | d15d342df324a443405bddaeef8859324244c8cf (patch) | |
tree | f0e69840bf4de8979253a3c599a4700f172a7ca2 | |
parent | 2f89ac0ac763948b3dc6fa91a21cc10977936a0d (diff) |
Tests: symlink to tmux sockets
This makes it easier to attach a second client to inspect a test.
-rwxr-xr-x | src/tests/e2e-test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/e2e-test b/src/tests/e2e-test index 89e3d17..7d92515 100755 --- a/src/tests/e2e-test +++ b/src/tests/e2e-test @@ -243,9 +243,10 @@ for run in $server_tests; do # XXX tmux 1.8 requires shell command as a single arg; once we move to 2.0, undo these quotes # XXX this ignores $TMPDIR, because it results in an overlong pathname on OS X tmux_socket="/tmp/.tmux-mosh-test-$$" + ln -fs "${tmux_socket}" "${test_dir}/tmux-socket" ${tmux_stdin} tmux -f /dev/null -S "${tmux_socket}" -C new-session "${srcdir}/print-exitstatus ${client_wrapper} ${sut} ${server_wrapper} \"${PWD}/${test_dir}/${run}\" \"${PWD}/${test_script} ${run}\"" > "${test_dir}/${run}.tmux.log" rv=$? - rm -f "${tmux_socket}" + rm -f "${tmux_socket}" "${test_dir}/tmux-socket" if [ $rv -ne 0 ]; then test_error "tmux failure on test %s\n" "$run" fi |