mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-22 05:01:25 +00:00
Sigh, move menu_launch_type after get_release_number
Stupid perl. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
2f93645a55
commit
6232be32cf
36
lib/utils.pm
36
lib/utils.pm
@ -381,24 +381,6 @@ sub check_release {
|
|||||||
validate_script_output $check_command, sub { $_ =~ m/REDHAT_SUPPORT_PRODUCT_VERSION=$release/ };
|
validate_script_output $check_command, sub { $_ =~ m/REDHAT_SUPPORT_PRODUCT_VERSION=$release/ };
|
||||||
}
|
}
|
||||||
|
|
||||||
sub menu_launch_type {
|
|
||||||
# Launch an application in a graphical environment, by opening a
|
|
||||||
# launcher, typing the specified string and hitting enter. Pass
|
|
||||||
# the string to be typed to launch whatever it is you want.
|
|
||||||
my $app = shift;
|
|
||||||
# super does not work on KDE, because fml
|
|
||||||
send_key 'alt-f1';
|
|
||||||
# srsly KDE y u so slo
|
|
||||||
wait_still_screen 3;
|
|
||||||
my $relnum = get_release_number;
|
|
||||||
if (get_var("DESKTOP") eq "gnome" && $relnum > 32) {
|
|
||||||
# FIXME: workaround https://pagure.io/background-logo-extension/issue/26
|
|
||||||
assert_and_click "overview_search_box";
|
|
||||||
}
|
|
||||||
type_very_safely $app;
|
|
||||||
send_key 'ret';
|
|
||||||
}
|
|
||||||
|
|
||||||
sub disable_firefox_studies {
|
sub disable_firefox_studies {
|
||||||
# create a config file that disables Firefox's dumb 'shield
|
# create a config file that disables Firefox's dumb 'shield
|
||||||
# studies' so they don't break tests:
|
# studies' so they don't break tests:
|
||||||
@ -1029,6 +1011,24 @@ sub get_release_number {
|
|||||||
return $version
|
return $version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub menu_launch_type {
|
||||||
|
# Launch an application in a graphical environment, by opening a
|
||||||
|
# launcher, typing the specified string and hitting enter. Pass
|
||||||
|
# the string to be typed to launch whatever it is you want.
|
||||||
|
my $app = shift;
|
||||||
|
# super does not work on KDE, because fml
|
||||||
|
send_key 'alt-f1';
|
||||||
|
# srsly KDE y u so slo
|
||||||
|
wait_still_screen 3;
|
||||||
|
my $relnum = get_release_number;
|
||||||
|
if (get_var("DESKTOP") eq "gnome" && $relnum > 32) {
|
||||||
|
# FIXME: workaround https://pagure.io/background-logo-extension/issue/26
|
||||||
|
assert_and_click "overview_search_box";
|
||||||
|
}
|
||||||
|
type_very_safely $app;
|
||||||
|
send_key 'ret';
|
||||||
|
}
|
||||||
|
|
||||||
sub tell_source {
|
sub tell_source {
|
||||||
# This helper function identifies the Subvariant of the tested system.
|
# This helper function identifies the Subvariant of the tested system.
|
||||||
# For the purposes of identification testing, we are only interested
|
# For the purposes of identification testing, we are only interested
|
||||||
|
Loading…
Reference in New Issue
Block a user