From 130c7a08436a33a8cc1354230ed3d5bd53f91dc3 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 24 Jul 2024 12:11:36 +0200 Subject: [PATCH] add cockpit CI glue --- test/run | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/test/run b/test/run index 5c14f0d..ee40f82 100755 --- a/test/run +++ b/test/run @@ -1,5 +1,5 @@ #! /bin/sh -set -eu +set -eux # This is the expected entry point for Cockpit CI; will be called without # arguments but with an appropriate $TEST_OS, and optionally $TEST_SCENARIO @@ -8,5 +8,15 @@ TEST_SCENARIO="${TEST_SCENARIO:-}" [ "${TEST_SCENARIO}" = "${TEST_SCENARIO##firefox}" ] || export TEST_BROWSER=firefox export RUN_TESTS_OPTIONS=--track-naughties -make codecheck -make check +make prepare-check + +bots/machine/testvm.py $TEST_OS & +VM_PID=$! +trap "kill $VM_PID" EXIT INT QUIT PIPE + +# Wait for the VM to be ready +until nc -z 127.0.0.2 2201; do + sleep 1 +done + +./bidi-test.py