mirror of
https://passt.top/passt
synced 2025-06-01 22:05:43 +02:00
test: Record CI and demo videos in Xvfb by default, fix demo setup sequence
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
a8b767b06d
commit
4e5129719d
6 changed files with 54 additions and 8 deletions
test
7
test/run
7
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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue