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:
parent
fae59b494b
commit
7091755c58
@ -69,8 +69,14 @@ cleanup() {
|
|||||||
rm -f $basedir/$SERVERNAME.status $basedir/$SERVERNAME.log
|
rm -f $basedir/$SERVERNAME.status $basedir/$SERVERNAME.log
|
||||||
echo $$ > $basedir/$SERVERNAME.parent.pid
|
echo $$ > $basedir/$SERVERNAME.parent.pid
|
||||||
trap cleanup SIGINT SIGTERM SIGPIPE
|
trap cleanup SIGINT SIGTERM SIGPIPE
|
||||||
|
|
||||||
if [[ "$TMUX" ]]; then
|
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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user