Create test suite for Fedora Media Writer #462

Merged
adamwill merged 16 commits from newtest/fedora-media-writer into main 2026-06-08 04:02:55 +00:00
2 changed files with 5 additions and 14 deletions
Showing only changes of commit bcd474d7f6 - Show all commits

Use Adam's way to handle containers
Some checks failed
CI via Tox and perl / tox (pull_request) Successful in 3m56s
CI via Tox and perl / perl (pull_request) Failing after 31s

Lukáš Růžička 2026-01-28 12:50:55 +01:00

View file

@ -2010,23 +2010,15 @@ sub connections_connect {
# Unknown actions are reported as a soft failure.
sub toolbox {
my ($action, $params) = @_;
if ($action eq "create") {
assert_script_run("toolbox --verbose create -y", timeout => 600);
}
elsif ($action eq "install") {
enter_cmd("toolbox enter");
wait_still_screen(5); # Wait until we have entered the toolbox
enter_cmd("sudo dnf -y install $params");
wait_still_screen(5); # Wait until we have installed the application
if ($action eq "install") {
type_string("toolbox -y enter\n");
assert_script_run("true", timeout => 600); # Wait until we have entered the toolbox
assert_script_run("sudo dnf -y install $params");
enter_cmd("exit");
wait_still_screen(2);
}
elsif ($action eq "run") {
enter_cmd("toolbox enter");
wait_still_screen(5); # Wait until we have entered the toolbox
assert_script_run("$params", timeout => 120);
enter_cmd("exit");
wait_still_screen(2);
assert_script_run("toolbox run $params", timeout => 120);
}
else {
record_soft_failure("The toolbox subroutine was used to perform an unknown command.");

View file

@ -18,7 +18,6 @@ sub run {
assert_script_run("dnf install -y isomd5sum", timeout => 120);
}
else {
toolbox("create");
toolbox("install", "isomd5sum");
}