From 4e5129719d77ad6950989fc8b5c2a36ae4c2ec2f Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 29 Sep 2021 16:45:26 +0200 Subject: test: Record CI and demo videos in Xvfb by default, fix demo setup sequence Signed-off-by: Stefano Brivio --- test/lib/setup | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'test/lib/setup') diff --git a/test/lib/setup b/test/lib/setup index fd68f05..bb4de5f 100755 --- a/test/lib/setup +++ b/test/lib/setup @@ -305,6 +305,29 @@ teardown_two_guests() { pane_wait PASST_2 } +# teardown_demo_passt() - Exit namespace, kill qemu, passt and pasta +teardown_demo_passt() { + tmux send-keys -t ${PANE_GUEST} "C-c" + pane_wait GUEST + tmux send-keys -t ${PANE_GUEST} "C-d" + + tmux send-keys -t ${PANE_HOST} "C-d" + + tmux send-keys -t ${PANE_PASST} "C-c" + pane_wait PASST + tmux send-keys -t ${PANE_PASST} "C-d" + + pane_wait GUEST + pane_wait HOST + pane_wait PASST +} + +# teardown_demo_pasta() - Exit namespace from remaining pane +teardown_demo_pasta() { + tmux send-keys -t ${PANE_NS} "C-d" + pane_wait NS +} + # setup() - Run setup_*() functions # $*: Suffix list of setup_*() functions to be called setup() { -- cgit v1.2.3