]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testenv: tmux does not allow "." or ":" in window names anymore
authorVolker Lendecke <vl@samba.org>
Wed, 8 Jul 2026 12:01:59 +0000 (14:01 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 8 Jul 2026 16:19:23 +0000 (16:19 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Jul  8 16:19:23 UTC 2026 on atb-devel-224

selftest/in_screen

index d7d1b53d9201e0489ebc420f7b54c138b4b3b159..24e0402d93c1759d09f01a08d03f67b0da7ca968 100755 (executable)
@@ -69,7 +69,12 @@ if [[ "$TMUX" ]]; then
                TMUX_CMD=tmate
        fi
 
-       $TMUX_CMD new-window -n test:$SERVERNAME "bash $basedir/$SERVERNAME.launch"
+       # tmux forbids . and : in window names
+       WINDOWNAME=test:"$SERVERNAME"
+       WINDOWNAME=${WINDOWNAME//\./#}
+       WINDOWNAME=${WINDOWNAME//\:/#}
+
+       $TMUX_CMD new-window -n "$WINDOWNAME" "bash $basedir/$SERVERNAME.launch"
 
        # tmux seems to lag a bit for new sessions. Don't create them too
        # quickly one after another