nixosTests.retroarch: format using nixfmt

This commit is contained in:
Noa Aarts 2024-11-06 20:08:39 +01:00
parent b05bea1fcf
commit dd4d691d9b
No known key found for this signature in database
GPG Key ID: 1850932741EFF672

View File

@ -1,10 +1,14 @@
import ./make-test-python.nix ({ pkgs, ... }: import ./make-test-python.nix (
{ pkgs, ... }:
{ {
name = "retroarch"; name = "retroarch";
meta = with pkgs.lib; { maintainers = teams.libretro.members ++ [ maintainers.j0hax ]; }; meta = with pkgs.lib; {
maintainers = teams.libretro.members ++ [ maintainers.j0hax ];
};
nodes.machine = { ... }: nodes.machine =
{ ... }:
{ {
imports = [ ./common/user-account.nix ]; imports = [ ./common/user-account.nix ];
@ -23,11 +27,13 @@ import ./make-test-python.nix ({ pkgs, ... }:
}; };
}; };
testScript = { nodes, ... }: testScript =
{ nodes, ... }:
let let
user = nodes.machine.config.users.users.alice; user = nodes.machine.config.users.users.alice;
xdo = "${pkgs.xdotool}/bin/xdotool"; xdo = "${pkgs.xdotool}/bin/xdotool";
in '' in
''
with subtest("Wait for login"): with subtest("Wait for login"):
start_all() start_all()
machine.wait_for_file("/tmp/xauth_*") machine.wait_for_file("/tmp/xauth_*")
@ -46,4 +52,5 @@ import ./make-test-python.nix ({ pkgs, ... }:
) )
machine.screenshot("screen") machine.screenshot("screen")
''; '';
}) }
)