0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

nixosTests.xautolock: migrate to runTest

Part Of #386873
This commit is contained in:
Martin Weinelt 2025-03-14 23:35:56 +01:00
parent f7a4d10a08
commit ae0871bca2
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 21 additions and 25 deletions

View file

@ -1,27 +1,23 @@
import ./make-test-python.nix (
{ pkgs, lib, ... }:
{
name = "xautolock";
meta.maintainers = [ ];
{
name = "xautolock";
meta.maintainers = [ ];
nodes.machine = {
imports = [
./common/x11.nix
./common/user-account.nix
];
nodes.machine = {
imports = [
./common/x11.nix
./common/user-account.nix
];
test-support.displayManager.auto.user = "bob";
services.xserver.xautolock.enable = true;
services.xserver.xautolock.time = 1;
};
test-support.displayManager.auto.user = "bob";
services.xserver.xautolock.enable = true;
services.xserver.xautolock.time = 1;
};
testScript = ''
machine.start()
machine.wait_for_x()
machine.fail("pgrep xlock")
machine.sleep(120)
machine.succeed("pgrep xlock")
'';
}
)
testScript = ''
machine.start()
machine.wait_for_x()
machine.fail("pgrep xlock")
machine.sleep(120)
machine.succeed("pgrep xlock")
'';
}