From c8afd99b5b039e7828a2396d646f003d3d9bf455 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 1 Feb 2024 11:58:36 +0100 Subject: [PATCH] shellcheck --- testing-farm/tests/old-testsuite/test.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/testing-farm/tests/old-testsuite/test.sh b/testing-farm/tests/old-testsuite/test.sh index 436241a1d..ca6066dff 100755 --- a/testing-farm/tests/old-testsuite/test.sh +++ b/testing-farm/tests/old-testsuite/test.sh @@ -1,6 +1,7 @@ #!/bin/bash -eux -# Copy files so the 'mockbuild' user has the full access +# The Mock's test-suite is designed for the mockbuild users. Copy files to a +# separate directory where the 'mockbuild' user has a full access. workdir=$(mktemp -d --suffix=-mock-old-tests) rsync -rav ../../../ "$workdir" chown -Rv mockbuild:mockbuild "$workdir" @@ -15,9 +16,9 @@ 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 -# Testsuite is prepared for the mockbuild user - cd "$workdir/mock" + +# shellcheck disable=SC2024 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