From: Volker Lendecke Date: Thu, 15 Jun 2017 15:36:58 +0000 (+0200) Subject: selftest: Give tmux a bit of time to establish X-Git-Tag: tevent-0.9.32~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f393edd41c483fab750e37755466bb5c8c8df28f;p=thirdparty%2Fsamba.git 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 Reviewed-by: Andreas Schneider Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Wed Jun 21 03:14:17 CEST 2017 on sn-devel-144 --- diff --git a/selftest/in_screen b/selftest/in_screen index 36c3da11918..5aba08d4750 100755 --- a/selftest/in_screen +++ b/selftest/in_screen @@ -77,6 +77,10 @@ if [[ "$TMUX" ]]; then fi $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 screen -r -X screen -t test:$SERVERNAME bash $basedir/$SERVERNAME.launch fi