From e8df07813b97040060162d741008cc2c09af1b68 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 12 Jun 2023 08:55:32 -0700 Subject: [PATCH] ostree rebase: for update tests, check we deployed custom ref This checks we actually deployed the 'fedora-openqa' ref as we intended to (if not, the rebase test probably won't work properly or won't test what we want it to). Signed-off-by: Adam Williamson --- tests/rpmostree_rebase.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/rpmostree_rebase.pm b/tests/rpmostree_rebase.pm index ab52282d..24668706 100644 --- a/tests/rpmostree_rebase.pm +++ b/tests/rpmostree_rebase.pm @@ -23,6 +23,9 @@ sub run { # get current branch my $current = script_output "rpm-ostree status -b | grep fedora"; + if (get_var("ADVISORY_OR_TASK")) { + die "Expected 'fedora-openqa' ref not deployed!" unless ($current =~ m/fedora-openqa/); + } my $arch = lc(get_var("ARCH"));