]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Give tmux a bit of time to establish
authorVolker Lendecke <vl@samba.org>
Thu, 15 Jun 2017 15:36:58 +0000 (17:36 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 21 Jun 2017 01:14:17 +0000 (03:14 +0200)
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

selftest/in_screen

index 36c3da119189a16213571a4a2a2b6f11c958090f..5aba08d4750c440db2c573996b45c7e0d8f8bccb 100755 (executable)
@@ -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