aboutgitcodebugslistschat
path: root/test/lib/term
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-09-29 16:45:26 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-09-29 16:45:26 +0200
commit4e5129719d77ad6950989fc8b5c2a36ae4c2ec2f (patch)
treeb6ca61dc46e087e04f9d1f8390fcf4186aa0a670 /test/lib/term
parenta8b767b06dbb431b82f894c601beb1290e84ee2f (diff)
downloadpasst-4e5129719d77ad6950989fc8b5c2a36ae4c2ec2f.tar
passt-4e5129719d77ad6950989fc8b5c2a36ae4c2ec2f.tar.gz
passt-4e5129719d77ad6950989fc8b5c2a36ae4c2ec2f.tar.bz2
passt-4e5129719d77ad6950989fc8b5c2a36ae4c2ec2f.tar.lz
passt-4e5129719d77ad6950989fc8b5c2a36ae4c2ec2f.tar.xz
passt-4e5129719d77ad6950989fc8b5c2a36ae4c2ec2f.tar.zst
passt-4e5129719d77ad6950989fc8b5c2a36ae4c2ec2f.zip
test: Record CI and demo videos in Xvfb by default, fix demo setup sequence
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib/term')
-rwxr-xr-xtest/lib/term13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/lib/term b/test/lib/term
index 48f0f6a..dfe173e 100755
--- a/test/lib/term
+++ b/test/lib/term
@@ -529,15 +529,24 @@ pause_continue() {
# run_term() - Start tmux session, X terminal if requested, running entry point
run_term() {
export SHELL="/bin/sh"
+ tmux set-option -g default-shell "/bin/sh"
if [ ${CI} -eq 1 ]; then
__xterm_done="$(mktemp)"
- ${CI_XTERM} "$(pwd)" -e "sh -c \"printf '\e[8;50;240t'; tmux new-session -s passt_test ./ci from_term; echo >${__xterm_done}\""
+ if [ ${XVFB} -eq 1 ]; then
+ xvfb-run -s "-screen 0 4000x4000x24 -ac" ${CI_XTERM} "$(pwd)" -e "sh -c \"printf '\e[8;50;240t'; tmux new-session -s passt_test ./ci from_term; echo >${__xterm_done}\""
+ else
+ ${CI_XTERM} "$(pwd)" -e "sh -c \"printf '\e[8;50;240t'; tmux new-session -s passt_test ./ci from_term; echo >${__xterm_done}\""
+ fi
while ! [ -s "${__xterm_done}" ]; do sleep 1; done
rm "${__xterm_done}"
elif [ ${DEMO} -eq 1 ]; then
while true; do
- ${DEMO_XTERM} "$(pwd)" -e sh -c 'tmux new-session -s passt_test ./run_demo from_term'
+ if [ ${XVFB} -eq 1 ]; then
+ xvfb-run -s "-screen 0 4000x4000x24 -ac" ${DEMO_XTERM} "$(pwd)" -e sh -c 'tmux new-session -s passt_test ./run_demo from_term'
+ else
+ ${DEMO_XTERM} "$(pwd)" -e sh -c 'tmux new-session -s passt_test ./run_demo from_term'
+ fi
[ $? -ne 0 ] && { tmux kill-session -t passt_test; continue; }
break
done