test/run: Run bidi

This commit is contained in:
Martin Pitt 2024-07-16 17:55:43 +02:00
parent 0ad4afe77d
commit cc97344c20
2 changed files with 16 additions and 3 deletions

View file

@ -109,8 +109,10 @@ try {
// base64 encoded PNG, works fine // base64 encoded PNG, works fine
// const screenshot = await b.takeScreenshot(); // const screenshot = await b.takeScreenshot();
/*
console.log("\n\nFinished. Press Control-C to exit"); console.log("\n\nFinished. Press Control-C to exit");
await new Promise(resolve => setTimeout(resolve, 100000)); await new Promise(resolve => setTimeout(resolve, 100000));
*/
} finally { } finally {
await b.deleteSession(); await b.deleteSession();
} }

View file

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
set -eu set -eux
# This is the expected entry point for Cockpit CI; will be called without # This is the expected entry point for Cockpit CI; will be called without
# arguments but with an appropriate $TEST_OS, and optionally $TEST_SCENARIO # arguments but with an appropriate $TEST_OS, and optionally $TEST_SCENARIO
@ -8,5 +8,16 @@ TEST_SCENARIO="${TEST_SCENARIO:-}"
[ "${TEST_SCENARIO}" = "${TEST_SCENARIO##firefox}" ] || export TEST_BROWSER=firefox [ "${TEST_SCENARIO}" = "${TEST_SCENARIO##firefox}" ] || export TEST_BROWSER=firefox
export RUN_TESTS_OPTIONS=--track-naughties export RUN_TESTS_OPTIONS=--track-naughties
make codecheck # 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
node bidi.js