mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-19 19:51:25 +00:00
Work around RHBZ #1439429 when running Firefox on X
This commit is contained in:
parent
e79d00500d
commit
654534e694
@ -34,6 +34,8 @@ sub add_user {
|
|||||||
# it's at a console ready to start Firefox.
|
# it's at a console ready to start Firefox.
|
||||||
sub start_webui {
|
sub start_webui {
|
||||||
my ($user, $password) = @_;
|
my ($user, $password) = @_;
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1439429
|
||||||
|
assert_script_run "sed -i -e 's,enable_xauth=1,enable_xauth=0,g' /usr/bin/startx";
|
||||||
type_string "startx /usr/bin/firefox -width 1024 -height 768 https://ipa001.domain.local\n";
|
type_string "startx /usr/bin/firefox -width 1024 -height 768 https://ipa001.domain.local\n";
|
||||||
wait_still_screen 5;
|
wait_still_screen 5;
|
||||||
assert_screen "freeipa_webui_login";
|
assert_screen "freeipa_webui_login";
|
||||||
|
@ -268,6 +268,8 @@ sub start_cockpit {
|
|||||||
# on localhost) shown. If $login is truth-y, also log in. Assumes
|
# on localhost) shown. If $login is truth-y, also log in. Assumes
|
||||||
# X and Firefox are installed.
|
# X and Firefox are installed.
|
||||||
my $login = shift || 0;
|
my $login = shift || 0;
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1439429
|
||||||
|
assert_script_run "sed -i -e 's,enable_xauth=1,enable_xauth=0,g' /usr/bin/startx";
|
||||||
# run firefox directly in X as root. never do this, kids!
|
# run firefox directly in X as root. never do this, kids!
|
||||||
type_string "startx /usr/bin/firefox -width 1024 -height 768 http://localhost:9090\n";
|
type_string "startx /usr/bin/firefox -width 1024 -height 768 http://localhost:9090\n";
|
||||||
assert_screen "cockpit_login";
|
assert_screen "cockpit_login";
|
||||||
|
Loading…
Reference in New Issue
Block a user