summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Hood <cgull@glup.org>2017-03-01 22:46:21 -0500
committerJohn Hood <cgull@glup.org>2017-03-01 23:16:26 -0500
commit2e816205f7d0ca18f15a602ecb660746c4682651 (patch)
treee7fcd737dbfb66bdcbbb1a9e91b6ae9c1df46b57
parent1cad191b102b203e605e1d8471d054770b5176d6 (diff)
window-resize.test: use a known-present file
/etc/services may not be present in a Debian sid schroot. Also make $srcdir available to test scripts.
-rwxr-xr-xsrc/tests/e2e-test2
-rwxr-xr-xsrc/tests/window-resize.test2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/e2e-test b/src/tests/e2e-test
index d728c12..678fb13 100755
--- a/src/tests/e2e-test
+++ b/src/tests/e2e-test
@@ -109,7 +109,7 @@ mosh_server()
# Set up environment
if [ -z "$srcdir" ]; then
- srcdir=$PWD
+ export srcdir=$PWD
else
srcdir="$(cd "$srcdir" && pwd)"
if [ $? -ne 0 ]; then
diff --git a/src/tests/window-resize.test b/src/tests/window-resize.test
index 3b403a7..a31025e 100755
--- a/src/tests/window-resize.test
+++ b/src/tests/window-resize.test
@@ -42,7 +42,7 @@ tmux_commands()
# An interactive shell is waiting for us in the mosh session.
# Start a full screen application that will redraw on window
# resize.
- printf "send-keys 'less /etc/services' 0x0d\n"
+ printf "send-keys 'less \"%s\"' 0x0d\n" "${srcdir}/e2e-test"
sleep 1
# we control the horizontal...
tmux_resize_commands v D U