Run tests only on x86_64

Tests are intended to work only on x86_64. Other arches are tested in
the upstream.

Resolves: RHEL-32133

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-07-23 16:52:02 +02:00
parent 15ffd5db7a
commit a7239bd381
No known key found for this signature in database
GPG Key ID: C5887AD51D9F3C2D
4 changed files with 15 additions and 1 deletions

View File

@ -8,3 +8,5 @@ discover:
filter: tag:integration-test
execute:
how: tmt
provision:
arch: x86_64

View File

@ -11,3 +11,5 @@ discover:
filter: tag:unit-test
execute:
how: tmt
provision:
arch: x86_64

View File

@ -11,7 +11,9 @@ fi
# ensure that we are running on x86_64 architecture
if [ "$(uname -m)" != "x86_64" ]; then
echo "Error: this script is only supported on x86_64 architecture"
exit 1
# NB: we are not failing here, because Testing Farm ignores the 'arch' field in the test plan spec
# See https://docs.testing-farm.io/Testing%20Farm/0.1/test-request.html#architectures
exit 0
fi
. /etc/os-release

View File

@ -5,6 +5,14 @@ set -euxo pipefail
source /etc/os-release
# ensure that we are running on x86_64 architecture
if [ "$(uname -m)" != "x86_64" ]; then
echo "Error: this script is only supported on x86_64 architecture"
# NB: we are not failing here, because Testing Farm ignores the 'arch' field in the test plan spec
# See https://docs.testing-farm.io/Testing%20Farm/0.1/test-request.html#architectures
exit 0
fi
# The 'test/run/test_assemblers.py::test_tar' test case uses system tar to extract the built tar archive.
# However, files in the tar archive can have SELinux context not present in the system policy. Therefore,
# in order for the system tar to be able to set it when extracting the archive, it must be labeled with