aboutgitcodebugslistschat
path: root/test/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/run')
-rwxr-xr-xtest/run7
1 files changed, 6 insertions, 1 deletions
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')