diff options
author | Tor Hedin Brønner <torhedinbronner@gmail.com> | 2020-08-23 19:09:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-23 19:09:59 +0200 |
commit | 7aaf5262258a4c2e7366510d0978050f0ed965c4 (patch) | |
tree | 7368e59385599852714e8d551d8307670844535d /nixos/tests/gnome3.nix | |
parent | 4abb13c9b253fda8205803012295b622d47014ee (diff) |
nixos/tests/gnome3: start terminal with autostart file (#96102)
For some reason starting the terminal using `su user -c '...'` have
a tendency to fail. Simply use an autostart file instead.
Diffstat (limited to 'nixos/tests/gnome3.nix')
-rw-r--r-- | nixos/tests/gnome3.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nixos/tests/gnome3.nix b/nixos/tests/gnome3.nix index b3d7aff8bd71..7e301be49d10 100644 --- a/nixos/tests/gnome3.nix +++ b/nixos/tests/gnome3.nix @@ -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; }; @@ -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'" |