diff --git a/tests/tests.yml b/tests/tests.yml index 422c0bd..893af8c 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -21,3 +21,4 @@ - verify: dir: . run: ./verify.sh + save-files: ["logs/*"] diff --git a/tests/verify.sh b/tests/verify.sh index 9002f8b..20969e4 100755 --- a/tests/verify.sh +++ b/tests/verify.sh @@ -1,12 +1,13 @@ #!/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 +# 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 @@ -20,19 +21,24 @@ 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 <