From dc9941e8ecc4dc9c251c39ba8d583987ffe77f7d Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 1 Feb 2024 11:00:14 +0100 Subject: [PATCH] work in /tmp --- testing-farm/tests/old-testsuite/test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testing-farm/tests/old-testsuite/test.sh b/testing-farm/tests/old-testsuite/test.sh index 6488a28fe..46f9e6595 100755 --- a/testing-farm/tests/old-testsuite/test.sh +++ b/testing-farm/tests/old-testsuite/test.sh @@ -1,6 +1,9 @@ #!/bin/bash -eux -cd ../../../mock +# Copy files so the 'mockbuild' user has the full access +workdir=$(mktemp -d --suffix=-mock-old-tests) +rsync -rav ../../../ "$workdir" +chown -Rv mockbuild:mockbuild "$workdir" # Install the tested RPMs install-mock-packages-built-by-packit mock-core-configs mock