From 1b8aa92df5e1858bb6f7209f2fd40bd559c0f81d Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 2 Apr 2025 16:10:13 -0700 Subject: [PATCH] rpmostree_rebase: tweak coreos rebase targets Because of the 'can't go from > 41 to <= 41' issue, we need to tweak the coreos rebase targets to get the tests to pass. Signed-off-by: Adam Williamson --- tests/rpmostree_rebase.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/rpmostree_rebase.pm b/tests/rpmostree_rebase.pm index d1cef70a..dd668819 100644 --- a/tests/rpmostree_rebase.pm +++ b/tests/rpmostree_rebase.pm @@ -55,7 +55,14 @@ sub run { $target = "fedora/${rebase}/${arch}/silverblue"; } elsif ($current =~ "coreos") { - $rebase = $current =~ "stable" ? "testing" : "stable"; +# $rebase = $current =~ "stable" ? "testing" : "stable"; + # per above, rebasing from >41 to <=41 doesn't work + # as of 2025-04-02, 'stable' and 'testing' are 41, + # 'next' is 42, 'rawhide' is 43, so... + $rebase = "stable"; + $rebase = "testing" if ($current =~ "stable"); + $rebase = "next" if ($current =~ "rawhide"); + $rebase = "rawhide" if ($current =~ "next"); $target = "fedora:fedora/${arch}/coreos/${rebase}"; }