diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-09-29 16:45:26 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-09-29 16:45:26 +0200 |
commit | 4e5129719d77ad6950989fc8b5c2a36ae4c2ec2f (patch) | |
tree | b6ca61dc46e087e04f9d1f8390fcf4186aa0a670 /test/run | |
parent | a8b767b06dbb431b82f894c601beb1290e84ee2f (diff) | |
download | passt-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/run')
-rwxr-xr-x | test/run | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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') |