Skip to content

Commit

Permalink
shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Feb 1, 2024
1 parent 082e983 commit c8afd99
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions testing-farm/tests/old-testsuite/test.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand Down

0 comments on commit c8afd99

Please sign in to comment.