Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
jobs:

# Upgrade Paths

- job: tests
trigger: pull_request
targets: [fedora-40]
Expand All @@ -14,3 +16,12 @@ jobs:
tmt_plan: /paths/fedora41to42
skip_build: true
identifier: fedora41to42

# Full Upgrade

- job: tests
trigger: pull_request
targets: [fedora-40]
tmt_plan: /plans/fedora40to41
skip_build: true
identifier: full-upgrade
9 changes: 9 additions & 0 deletions plans/fedora40to41.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
discover:
how: fmf
test: /tests/release
provision:
how: virtual
image: fedora-40
execute:
how: upgrade
upgrade-path: /paths/fedora40to41
9 changes: 9 additions & 0 deletions tests/release.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
summary: Check the system release
test: |
cat /etc/redhat-release

if [[ "$IN_PLACE_UPGRADE" == "old" ]]; then
grep -q 'Fedora release 40' /etc/redhat-release
else
grep -q 'Fedora release 41' /etc/redhat-release
fi