diff --git a/plans/integration-tests.fmf b/plans/integration-tests.fmf index 27dceee..26339a8 100644 --- a/plans/integration-tests.fmf +++ b/plans/integration-tests.fmf @@ -8,3 +8,5 @@ discover: filter: tag:integration-test execute: how: tmt +provision: + arch: x86_64 diff --git a/plans/unit-tests.fmf b/plans/unit-tests.fmf index 90a58a9..46085d6 100644 --- a/plans/unit-tests.fmf +++ b/plans/unit-tests.fmf @@ -11,3 +11,5 @@ discover: filter: tag:unit-test execute: how: tmt +provision: + arch: x86_64 diff --git a/tests/image-build/build-images.sh b/tests/image-build/build-images.sh index d103d86..0f3217c 100755 --- a/tests/image-build/build-images.sh +++ b/tests/image-build/build-images.sh @@ -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 diff --git a/tests/unit-tests/run-unit-tests.sh b/tests/unit-tests/run-unit-tests.sh index 968079c..b2400b2 100755 --- a/tests/unit-tests/run-unit-tests.sh +++ b/tests/unit-tests/run-unit-tests.sh @@ -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