Skip to content

Commit

Permalink
Merge pull request #154 from os-autoinst/minimalx
Browse files Browse the repository at this point in the history
Allow scenarios with minimalx desktop environment
  • Loading branch information
mergify[bot] authored Dec 11, 2023
2 parents 277360c + 21ebb57 commit 92866dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ sub switch_to_root_console {
sub switch_to_x11 {
my @hdd = split(/-/, basename get_required_var('HDD_1'));
# older openSUSE Tumbleweed has x11 still on tty7
my $x11_tty = $hdd[3] < 20190617 ? 'f7' : 'f2';
# minimalx has x11 on tty7
my $x11_tty = ($hdd[3] < 20190617 or check_var('DESKTOP', 'minimalx')) ? 'f7' : 'f2';
send_key "ctrl-alt-$x11_tty";
}

Expand Down Expand Up @@ -149,7 +150,7 @@ EOF
sub disable_packagekit {
diag('Ensure packagekit is not interfering with zypper calls');
assert_script_run 'systemctl mask --now packagekit';
assert_script_run 'sudo -u bernhard gsettings set org.gnome.software download-updates false';
assert_script_run 'sudo -u bernhard gsettings set org.gnome.software download-updates false' if get_var('DESKTOP', 'gnome') eq 'gnome';
}

1;

0 comments on commit 92866dc

Please sign in to comment.