From adfc60b2cb505ac9a27cbf1eb290522c2e675161 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Mon, 13 Nov 2023 22:31:09 +0100 Subject: [PATCH] beaker-tests-sanity: use custom package for testing ExclusiveArch Fix #2981 --- .../files/pkg-with-excludearch.spec | 21 +++++++++++++++++++ .../runtest-exclusivearch.sh | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 beaker-tests/Sanity/copr-cli-basic-operations/files/pkg-with-excludearch.spec diff --git a/beaker-tests/Sanity/copr-cli-basic-operations/files/pkg-with-excludearch.spec b/beaker-tests/Sanity/copr-cli-basic-operations/files/pkg-with-excludearch.spec new file mode 100644 index 000000000..67f43645d --- /dev/null +++ b/beaker-tests/Sanity/copr-cli-basic-operations/files/pkg-with-excludearch.spec @@ -0,0 +1,21 @@ +Name: pkg-with-macros +Version: 1.0 +Release: 1%{?dist} +Summary: Testing spec file +License: GPLv2 +URL: https://github.com/fedora-copr/copr +ExcludeArch: aarch64 %{power64} s390x + + +%description +Test spec file with macros + +%files + +%build + +%check + +%changelog +* Thu May 12 2022 Jakub Kadlcik - 1.0-1 +- Initial version diff --git a/beaker-tests/Sanity/copr-cli-basic-operations/runtest-exclusivearch.sh b/beaker-tests/Sanity/copr-cli-basic-operations/runtest-exclusivearch.sh index 808d0de82..a7a319273 100755 --- a/beaker-tests/Sanity/copr-cli-basic-operations/runtest-exclusivearch.sh +++ b/beaker-tests/Sanity/copr-cli-basic-operations/runtest-exclusivearch.sh @@ -52,7 +52,7 @@ rlJournalStart # Test ExcludeArch rlRun "copr-cli create ${NAME_PREFIX}ExcludeArch $chroots" - rlRun "copr-cli build-distgit ${NAME_PREFIX}ExcludeArch --name python-giacpy" + rlRun "copr-cli build ${NAME_PREFIX}ExcludeArch files/pkg-with-excludearch.spec " rlRun "copr monitor ${NAME_PREFIX}ExcludeArch > $OUTPUT" rlAssertEquals "Skipped chroots" `cat $OUTPUT |grep "skipped" |wc -l` 3 rlAssertEquals "Succeeded chroots" `cat $OUTPUT |grep "succeeded" |wc -l` 1