#!/bin/sh set -eux # from standard-test-source SOURCE="$(pwd)/source" LOGS="$(pwd)/logs" mkdir -p "$LOGS" chmod a+w "$LOGS" # these get mounted into the tasks container chcon -Rt container_file_t "$SOURCE" "$LOGS" # create user account for logging in if ! id admin 2>/dev/null; then useradd -c Administrator -G wheel admin 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 <