Work around there being no F40 toolbox container yet

See https://github.com/containers/toolbox/issues/1233#issuecomment-1672247681
we'll have to use an F39 container for now.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-08-09 15:33:44 -07:00
parent 8483e7bd82
commit 265e5c027a
1 changed files with 6 additions and 1 deletions

View File

@ -571,7 +571,12 @@ sub _repo_setup_updates {
# will get the packages from the update.
# on CANNED, we need to enter the toolbox at this point
if (get_var("CANNED")) {
type_string "toolbox -y enter\n";
# FIXME: as of 2023-08, there's no toolbox container for
# F40 (new Rawhide) so we need to use 39:
# https://github.com/containers/toolbox/issues/1233
my $extraarg = "";
$extraarg = "-r 39 " if ($version eq "40");
type_string "toolbox ${extraarg}-y enter\n";
# look for the little purple dot
assert_screen "console_in_toolbox", 180;
}