Skip to content

Commit

Permalink
nixos/tests/gnome3: start terminal with autostart file (#96102)
Browse files Browse the repository at this point in the history
For some reason starting the terminal using `su user -c '...'` have
a tendency to fail. Simply use an autostart file instead.
  • Loading branch information
hedning authored Aug 23, 2020
1 parent 4abb13c commit 7aaf526
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions nixos/tests/gnome3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
services.xserver.desktopManager.gnome3.enable = true;
services.xserver.desktopManager.gnome3.debug = true;

environment.systemPackages = [
(pkgs.makeAutostartItem {
name = "org.gnome.Terminal";
package = pkgs.gnome3.gnome-terminal;
})
];

virtualisation.memorySize = 1024;
};

Expand Down Expand Up @@ -65,9 +72,6 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
)
with subtest("Open Gnome Terminal"):
machine.succeed(
"${gnomeTerminalCommand}"
)
# correct output should be (true, '"gnome-terminal-server"')
machine.wait_until_succeeds(
"${wmClass} | grep -q 'gnome-terminal-server'"
Expand Down

0 comments on commit 7aaf526

Please sign in to comment.