1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

selftest: Give tmux a bit of time to establish

I've seen a lot of failures with make testenv telling that stdin returns
EAGAIN. I haven't fully diagnosed it, but this seems to fix it. Now
make testenv is much more reliable.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Jun 21 03:14:17 CEST 2017 on sn-devel-144
This commit is contained in:
Volker Lendecke 2017-06-15 17:36:58 +02:00
parent 8a2bbba5cd
commit f393edd41c

View File

@ -77,6 +77,10 @@ if [[ "$TMUX" ]]; then
fi fi
$TMUX_CMD new-window -n test:$SERVERNAME "bash $basedir/$SERVERNAME.launch" $TMUX_CMD new-window -n test:$SERVERNAME "bash $basedir/$SERVERNAME.launch"
# tmux seems to lag a bit for new sessions. Don't create them too
# quickly one after another
sleep .1
else else
screen -r -X screen -t test:$SERVERNAME bash $basedir/$SERVERNAME.launch screen -r -X screen -t test:$SERVERNAME bash $basedir/$SERVERNAME.launch
fi fi