cockpit-podman/tests/run-test.sh
Martin Pitt 53b04a1c8e test: Use run-tests
This provides automatic retries for flake resistance, proper TAP
output, and the `--exclude` option.
2020-08-06 15:27:06 +02:00

27 lines
832 B
Bash
Executable File

#!/bin/sh
set -eux
# tests need cockpit's bots/ libraries and test infrastructure
cd $SOURCE
git init
make bots test/common
# only install a subset to save time/space
rm -f package-lock.json # otherwise the command below installs *everything*, argh
npm install chrome-remote-interface sizzle
. /etc/os-release
export TEST_OS="${ID}-${VERSION_ID/./-}"
export TEST_AUDIT_NO_SELINUX=1
# FIXME: These cause "RuntimeError: RangeError: Maximum call stack size exceeded" in b.key_press(["\r"])
EXCLUDES="--exclude TestApplication.testRunImageSystem --exclude TestApplication.testRunImageUser"
RC=0
test/common/run-tests --trace --verbose --nondestructive --machine 127.0.0.1:22 --browser 127.0.0.1:9090 $EXCLUDES || RC=$?
echo $RC > "$LOGS/exitcode"
cp --verbose Test* "$LOGS" || true
# deliver test result via exitcode file
exit 0