2023-08-28 09:27:11 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
|
|
|
|
# We will start two applications and save the progress.
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
2024-05-31 11:13:31 +00:00
|
|
|
my $version = get_release_number();
|
|
|
|
my $user = get_var("USER_LOGIN", "test");
|
|
|
|
my $canned = get_var("CANNED");
|
2023-08-28 09:27:11 +00:00
|
|
|
# Let us wait here for a couple of seconds to give the VM time to settle.
|
|
|
|
# Starting right over might result in erroneous behavior.
|
|
|
|
sleep(5);
|
2024-10-16 10:07:04 +00:00
|
|
|
# Set the update notification timestamp
|
2024-10-17 00:17:37 +00:00
|
|
|
set_update_notification_timestamp();
|
2024-05-31 11:13:31 +00:00
|
|
|
# Change to root console, install a game package,
|
|
|
|
# download testdata, and return to the desktop environment.
|
|
|
|
$self->root_console(tty => 3);
|
|
|
|
if ($canned) {
|
|
|
|
assert_script_run('flatpak install -y net.sourceforge.ExtremeTuxRacer', timeout => 300);
|
|
|
|
# On Silverblue, Totem is not installed by default. Install it.
|
|
|
|
assert_script_run('flatpak install -y org.gnome.Totem', timeout => 300);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
assert_script_run("dnf install -y extremetuxracer", timeout => 180);
|
|
|
|
}
|
|
|
|
assert_script_run("curl -O https://pagure.io/fedora-qa/openqa_testdata/blob/thetree/f/video/video.ogv", timeout => 120);
|
|
|
|
# Put the downloaded video in the Videos folder
|
|
|
|
assert_script_run("mv video.ogv /home/$user/Videos/");
|
|
|
|
desktop_vt();
|
2023-08-28 09:27:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
|
|
|
return {fatal => 1, milestone => 1};
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|
|
|
|
|
|
|
|
|
|
|
|
|