mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user