Work around RHBZ #1439429 when running Firefox on X

This commit is contained in:
Adam Williamson 2017-04-05 18:22:09 -07:00
parent e79d00500d
commit 654534e694
2 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,8 @@ sub add_user {
# it's at a console ready to start Firefox.
sub start_webui {
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";
wait_still_screen 5;
assert_screen "freeipa_webui_login";

View File

@ -268,6 +268,8 @@ sub start_cockpit {
# on localhost) shown. If $login is truth-y, also log in. Assumes
# X and Firefox are installed.
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!
type_string "startx /usr/bin/firefox -width 1024 -height 768 http://localhost:9090\n";
assert_screen "cockpit_login";