tests: Sync with downstream RHEL

This commit is contained in:
Martin Pitt 2020-03-23 09:57:56 +01:00
parent e4b8e77fe7
commit 5706aaec3b

View File

@ -21,7 +21,7 @@ fi
# which tests the host. Use a fixed tag to avoid running into failures with
# "latest", as we don't gate container updates on the dist-git tests for now.
RC=0
cat <<EOF | podman run --rm -i -v "$SOURCE:/source:ro" -v "$LOGS:/logs" docker.io/cockpit/tasks:2019-06-03 /bin/sh -eux || RC=$?
cat <<EOF | podman run --rm -i -v "$SOURCE:/source:ro" -v "$LOGS:/logs" docker.io/cockpit/tasks:2020-01-30 /bin/sh -eux || RC=$?
# CSP does not like the the invalid host name _gateway, so translate it
HOST=\$(getent hosts _gateway | cut -f1 -d' ')
@ -31,6 +31,7 @@ trap "cp --verbose Test* /logs/ || true" EXIT
cd /tmp
git clone --depth=1 https://github.com/cockpit-project/cockpit
cd cockpit
git clone --depth=1 https://github.com/cockpit-project/bots
# copy tests from our source, so that they match the released version
rm -rf test
cp -a /source/test .
@ -38,7 +39,7 @@ cp -a /source/test .
# only install a subset to save time/space
npm install axe-core chrome-remote-interface sizzle
export TEST_OS=fedora-30
export TEST_OS=fedora-32
test/verify/check-menu -tv --machine \$HOST:22 --browser \$HOST:9090
EOF