From 96ce364931d827eef465fe71b93796a1223d9e69 Mon Sep 17 00:00:00 2001 From: Yariv Rachmani Date: Sun, 3 Dec 2023 18:13:13 +0200 Subject: [PATCH] Adding build to packit Tests should consume created packages from build stage Signed-off-by: Yariv Rachmani --- .packit.yaml | 18 +++++++++++++----- integration/plans/tier-0.fmf | 7 +++++-- integration/tests/boot-validation/test.sh | 2 ++ 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 830bcfd..9dfd5a6 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -2,19 +2,27 @@ # See the documentation for more information: # https://packit.dev/docs/configuration/ -specfile_path: rpm/initoverlayfs.spec -upstream_tag_template: v{version} +upstream_project_url: https://github.com/containers/initoverlayfs +issue_repository: https://github.com/containers/initoverlayfs +specfile_path: initoverlayfs.spec +upstream_package_name: initoverlayfs + +update_release: false srpm_build_deps: - make jobs: + - job: copr_build + trigger: pull_request + # x86_64 is assumed by default + targets: + - fedora-39-x86_64 + - centos-stream-9 + - job: tests trigger: pull_request identifier: integration-tiers tmt_plan: /integration/plans/tier-0 - skip_build: true - targets: targets: - - centos-stream-9-x86_64 - fedora-39-x86_64 diff --git a/integration/plans/tier-0.fmf b/integration/plans/tier-0.fmf index da4f9cf..3f00c30 100644 --- a/integration/plans/tier-0.fmf +++ b/integration/plans/tier-0.fmf @@ -8,19 +8,22 @@ provision: how: local adjust: + - when: distro == centos-stream-9 prepare+: - name: Prepare c9s Repo how: shell order: 10 script: | dnf install -y epel-release - when: distro == centos-stream-9 -prepare: + - when: scenario == manual + prepare+: - name: Prepare Repos how: shell script: | dnf copr enable -y @centos-automotive-sig/next + +prepare: - name: Install rpms how: install package: initoverlayfs diff --git a/integration/tests/boot-validation/test.sh b/integration/tests/boot-validation/test.sh index e3760a5..8ab61ed 100755 --- a/integration/tests/boot-validation/test.sh +++ b/integration/tests/boot-validation/test.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -x + if [ "${TMT_REBOOT_COUNT}" == "1" ];then echo -n "machine is up" exit 0