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.
This commit is contained in:
+1
-1
@@ -109,7 +109,7 @@ mosh_server()
|
|||||||
|
|
||||||
# Set up environment
|
# Set up environment
|
||||||
if [ -z "$srcdir" ]; then
|
if [ -z "$srcdir" ]; then
|
||||||
srcdir=$PWD
|
export srcdir=$PWD
|
||||||
else
|
else
|
||||||
srcdir="$(cd "$srcdir" && pwd)"
|
srcdir="$(cd "$srcdir" && pwd)"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ tmux_commands()
|
|||||||
# An interactive shell is waiting for us in the mosh session.
|
# An interactive shell is waiting for us in the mosh session.
|
||||||
# Start a full screen application that will redraw on window
|
# Start a full screen application that will redraw on window
|
||||||
# resize.
|
# resize.
|
||||||
printf "send-keys 'less /etc/services' 0x0d\n"
|
printf "send-keys 'less \"%s\"' 0x0d\n" "${srcdir}/e2e-test"
|
||||||
sleep 1
|
sleep 1
|
||||||
# we control the horizontal...
|
# we control the horizontal...
|
||||||
tmux_resize_commands v D U
|
tmux_resize_commands v D U
|
||||||
|
|||||||
Reference in New Issue
Block a user