From e58c7405fdff585d20f49cb3ab02674aec0fe65e Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 1 Feb 2024 11:18:03 +0100 Subject: [PATCH] fix --- 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 46f9e6595..7093b0ed1 100755 --- a/testing-farm/tests/old-testsuite/test.sh +++ b/testing-farm/tests/old-testsuite/test.sh @@ -11,7 +11,10 @@ install-mock-packages-built-by-packit mock-core-configs mock # Download the tested SRPM SRPM_DOWNLOAD_DIR=/tmp/mock-test-srpms install-mock-packages-built-by-packit mock -if (make check > >(tee the-log | grep -e FAILED: -e PASSED:) 2>&1) >&2; then +# Testsuite is prepared for the mockbuild user + +cd "$workdir/mock" +if (sudo -E -u mockbuild make check > >(tee the-log | grep -e FAILED: -e PASSED:) 2>&1) >&2; then echo "The 'make check' testsuite passed." else cat the-log