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/run | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/run') diff --git a/test/run b/test/run index 9d33951..2586e85 100755 --- a/test/run +++ b/test/run @@ -35,6 +35,9 @@ DEBUG=${DEBUG:-0} # If set, tell passt and pasta to take packet captures PCAP=${PCAP:-0} +# If set, run X terminals for CI and demos in Xvfb +XVFB=${XVFB:-1} + COMMIT="$(git log --oneline --no-decorate -1)" . lib/util @@ -117,7 +120,7 @@ demo() { MODE=passt test demo video_stop 0 - tmux send-keys -t ${PANE_GUEST} "C-c" + teardown demo_passt layout_demo_pasta video_grab demo_pasta @@ -149,6 +152,8 @@ else trap "" EXIT fi +[ ${DEMO} -eq 1 ] && exit 0 + tail -n1 ${LOGFILE} echo "Log at ${LOGFILE}" exit $(tail -n1 ${LOGFILE} | sed -n 's/.*FAIL: \(.*\)$/\1/p') -- cgit v1.2.3