aboutgitcodebugslistschat
path: root/test/lib/setup
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/setup
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/setup')
-rwxr-xr-xtest/lib/setup23
1 files changed, 23 insertions, 0 deletions
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() {