From 4be23117f9df395d575379d9a2df0423428362c7 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Wed, 22 Nov 2023 19:32:58 +0100 Subject: [PATCH] Fix artifact permissions on exit Workaround for https://gitlab.com/testing-farm/oculus/-/issues/19 --- integration/upstream-tests/test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/integration/upstream-tests/test.sh b/integration/upstream-tests/test.sh index 0240c16..4530ae3 100755 --- a/integration/upstream-tests/test.sh +++ b/integration/upstream-tests/test.sh @@ -6,6 +6,10 @@ set -o pipefail WORKDIR="$(mktemp -d)" pushd "$WORKDIR" +# Workaround for https://gitlab.com/testing-farm/oculus/-/issues/19 +# shellcheck disable=SC2064 +trap "chmod -R o+rX $TMT_TEST_DATA" EXIT + # Switch SELinux to permissive, since the tests don't set proper contexts setenforce 0