autotest: RiTW using Zellij

This commit is contained in:
TsuyoshiKawamura 2024-03-25 16:21:47 +09:00 committed by Andrew Tridgell
parent ba7fc3f53f
commit bc29550c9b

View File

@ -44,6 +44,9 @@ elif [ -n "$DISPLAY" -a -n "$(which gnome-terminal)" ]; then
elif [ -n "$STY" ]; then
# We are running inside of screen, try to start it there
screen -X screen -t "$name" bash -c "cd $PWD; $*"
elif [ -n "$ZELLIJ" ]; then
# Create a new pane to run
zellij run -n "$name" -- "$1" "${@:2}"
else
filename="/tmp/$name.log"
echo "RiTW: Window access not found, logging to $filename"