#!/bin/sh set -eux # HACK: this should be a var: https://pagure.io/standard-test-roles/issue/263 SOURCE=/var/str/source # HACK: reset the journal (tests should only look at the relevant portion) rm -rf /var/log/journal/* systemctl restart systemd-journald # create user account for logging in if ! id admin 2>/dev/null; then useradd admin -G wheel echo admin:foobar | chpasswd fi # The cockpit/tests container has chromium-browser and other test # dependencies, which we don't have on RHEL itself. Also, we don't actually # want to install these on the tested image, so run the test in a container, # 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 <