forked from mirrors/nixpkgs
faa82a676b
The gnome3 test has been failing recently ([1](http://hydra.nixos.org/build/26608126/nixlog/1/raw) [2](http://hydra.nixos.org/build/26605926/nixlog/1/raw)); this is due to exit code 124 which is [the command timing out](https://www.gnu.org/software/coreutils/manual/html_node/timeout-invocation.html). This increases the timeout to 900, to align with the similar timeout in https://github.com/NixOS/nixpkgs/blob/master/nixos/lib/test-driver/Machine.pm#L222
36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "gnome3";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ iElectric eelco chaoflow lethalman ];
|
|
};
|
|
|
|
machine =
|
|
{ config, pkgs, ... }:
|
|
|
|
{ imports = [ ./common/user-account.nix ];
|
|
|
|
services.xserver.enable = true;
|
|
|
|
services.xserver.displayManager.auto.enable = true;
|
|
services.xserver.displayManager.auto.user = "alice";
|
|
services.xserver.desktopManager.gnome3.enable = true;
|
|
|
|
virtualisation.memorySize = 512;
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
$machine->waitForX;
|
|
$machine->sleep(15);
|
|
|
|
# Check that logging in has given the user ownership of devices.
|
|
$machine->succeed("getfacl /dev/snd/timer | grep -q alice");
|
|
|
|
$machine->succeed("su - alice -c 'DISPLAY=:0.0 gnome-terminal &'");
|
|
$machine->waitForWindow(qr/Terminal/);
|
|
$machine->mustSucceed("timeout 900 bash -c 'journalctl -f|grep -m 1 \"GNOME Shell started\"'");
|
|
$machine->sleep(10);
|
|
$machine->screenshot("screen");
|
|
'';
|
|
})
|