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

selftest: Add support for tmate.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jun  6 02:25:52 CEST 2014 on sn-devel-104
This commit is contained in:
Andreas Schneider 2014-06-05 15:07:07 +02:00 committed by Michael Adam
parent fae59b494b
commit 7091755c58

View File

@ -69,8 +69,14 @@ cleanup() {
rm -f $basedir/$SERVERNAME.status $basedir/$SERVERNAME.log
echo $$ > $basedir/$SERVERNAME.parent.pid
trap cleanup SIGINT SIGTERM SIGPIPE
if [[ "$TMUX" ]]; then
tmux new-window -n test:$SERVERNAME "bash $basedir/$SERVERNAME.launch"
TMUX_CMD=tmux
if [[ $TMUX = *tmate* ]]; then
TMUX_CMD=tmate
fi
$TMUX_CMD new-window -n test:$SERVERNAME "bash $basedir/$SERVERNAME.launch"
else
screen -r -X screen -t test:$SERVERNAME bash $basedir/$SERVERNAME.launch
fi