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 <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-06-12 08:55:32 -07:00
parent d07b5a4178
commit e8df07813b
1 changed files with 3 additions and 0 deletions

View File

@ -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"));