mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
51de280c0a
There seems to be some race causing failures if an X command gets in before slim starts the session Signed-off-by: Shea Levy <shea@shealevy.com>
22 lines
475 B
Nix
22 lines
475 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
machine =
|
|
{ config, pkgs, ... }:
|
|
|
|
{ imports = [ ./common/x11.nix ];
|
|
environment.systemPackages = [ pkgs.firefox ];
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
$machine->waitForX;
|
|
$machine->execute("firefox file://${pkgs.valgrind}/share/doc/valgrind/html/index.html &");
|
|
$machine->waitForWindow(qr/Valgrind/);
|
|
$machine->sleep(40); # wait until Firefox has finished loading the page
|
|
$machine->screenshot("screen");
|
|
'';
|
|
|
|
}
|