aboutgitcodebugslistschat
path: root/test/run
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-05-12 13:27:21 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-05-19 15:24:15 +0200
commitae83999b75165669ba468defa4cddced3ef2b058 (patch)
treec5c2d46fc586c0f5f3910a678cf29a6f1517f826 /test/run
parent14cbbd602c82bc48df8b0a942f1198537aeced78 (diff)
downloadpasst-ae83999b75165669ba468defa4cddced3ef2b058.tar
passt-ae83999b75165669ba468defa4cddced3ef2b058.tar.gz
passt-ae83999b75165669ba468defa4cddced3ef2b058.tar.bz2
passt-ae83999b75165669ba468defa4cddced3ef2b058.tar.lz
passt-ae83999b75165669ba468defa4cddced3ef2b058.tar.xz
passt-ae83999b75165669ba468defa4cddced3ef2b058.tar.zst
passt-ae83999b75165669ba468defa4cddced3ef2b058.zip
tests: Don't globally set tmux default-shell
run_term() uses tmux set-option -g to globally set the default shell. Unfortunately this hits a chicken-and-egg problem that's common with many of tmux's session options. If there isn't already a tmux server running, we can't connect to set the option. If we attempt this after starting our session (and therefore the server), then the session will already be started with the previous default shell. In any case it's not a good idea to set tmux global options, since that might interfere with whatever else the user is doing in tmux. So, instead set the default-shell option locally to the session after starting it. To make sure we get the right shell for our initial script, explicitly invoke /bin/sh to interpret it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/run')
0 files changed, 0 insertions, 0 deletions