mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
nixosTests.keymap: migrate to runTest
0 drvPath changes! Related: https://github.com/NixOS/nixpkgs/issues/386873 Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
@@ -907,7 +907,10 @@ in
|
||||
kexec = runTest ./kexec.nix;
|
||||
keycloak = discoverTests (import ./keycloak.nix);
|
||||
keyd = handleTest ./keyd.nix { };
|
||||
keymap = handleTest ./keymap.nix { };
|
||||
keymap = import ./keymap.nix {
|
||||
inherit pkgs runTest;
|
||||
inherit (pkgs) lib;
|
||||
};
|
||||
kimai = runTest ./kimai.nix;
|
||||
kismet = runTest ./kismet.nix;
|
||||
kiwix-serve = runTest ./kiwix-serve;
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
{
|
||||
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";
|
||||
@@ -32,8 +30,8 @@ let
|
||||
extraConfig ? { },
|
||||
tests,
|
||||
}:
|
||||
with pkgs.lib;
|
||||
makeTest {
|
||||
with lib;
|
||||
runTest {
|
||||
name = "keymap-${layout}";
|
||||
|
||||
nodes.machine.console.keyMap = mkOverride 900 layout;
|
||||
@@ -105,7 +103,7 @@ let
|
||||
};
|
||||
|
||||
in
|
||||
pkgs.lib.mapAttrs mkKeyboardTest {
|
||||
lib.mapAttrs mkKeyboardTest {
|
||||
azerty = {
|
||||
tests = {
|
||||
azqw.qwerty = [
|
||||
|
||||
Reference in New Issue
Block a user