nixosTests.keyd: migrate to runTest

removed lib as it was unused and formatting would fail with it...

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2026-08-24 16:31:37 -04:00
parent 5cd9194546
commit 6daaac82bb
2 changed files with 10 additions and 9 deletions

View File

@@ -912,7 +912,10 @@ in
keter = runTest ./keter.nix;
kexec = runTest ./kexec.nix;
keycloak = discoverTests (import ./keycloak.nix);
keyd = handleTest ./keyd.nix { };
keyd = import ./keyd.nix {
inherit pkgs runTest;
inherit (pkgs) lib;
};
keymap = import ./keymap.nix {
inherit pkgs runTest;
inherit (pkgs) lib;

View File

@@ -1,12 +1,10 @@
# The test template is taken from the `./keymap.nix`
{
system ? builtins.currentSystem,
config ? { },
pkgs ? import ../.. { inherit system config; },
pkgs,
runTest,
lib,
}:
with import ../lib/testing-python.nix { inherit system pkgs; };
let
readyFile = "/tmp/readerReady";
resultFile = "/tmp/readerResult";
@@ -29,8 +27,8 @@ let
mkKeyboardTest =
name:
{ default, test }:
with pkgs.lib;
makeTest {
runTest {
inherit name;
nodes.machine = {
@@ -72,7 +70,7 @@ let
};
in
pkgs.lib.mapAttrs mkKeyboardTest {
lib.mapAttrs mkKeyboardTest {
swap-ab_and_ctrl-as-shift = {
test.press = [
"a"