test: Use run-tests

This provides automatic retries for flake resistance, proper TAP
output, and the `--exclude` option.
This commit is contained in:
Martin Pitt 2020-08-06 10:54:54 +02:00
parent b00a013533
commit 53b04a1c8e

View File

@ -14,9 +14,11 @@ npm install chrome-remote-interface sizzle
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/check-application -tv --machine 127.0.0.1:22 --browser 127.0.0.1:9090 \
TestApplication.test{BasicSystem,BasicUser,DownloadImage,LifecycleOperationsUser,LifecycleOperationsSystem} || RC=$?
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