nixos/tests: add kbd-update-search-paths-patch
This commit is contained in:
parent
c455b1a657
commit
88fbddc149
2 changed files with 19 additions and 0 deletions
|
@ -204,6 +204,7 @@ in
|
|||
k3s = handleTest ./k3s.nix {};
|
||||
kafka = handleTest ./kafka.nix {};
|
||||
kbd-setfont-decompress = handleTest ./kbd-setfont-decompress.nix {};
|
||||
kbd-update-search-paths-patch = handleTest ./kbd-update-search-paths-patch.nix {};
|
||||
kea = handleTest ./kea.nix {};
|
||||
keepalived = handleTest ./keepalived.nix {};
|
||||
keepassxc = handleTest ./keepassxc.nix {};
|
||||
|
|
18
nixos/tests/kbd-update-search-paths-patch.nix
Normal file
18
nixos/tests/kbd-update-search-paths-patch.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||
name = "kbd-update-search-paths-patch";
|
||||
|
||||
machine = { pkgs, options, ... }: {
|
||||
console = {
|
||||
packages = options.console.packages.default ++ [ pkgs.terminus_font ];
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
command = "${pkgs.kbd}/bin/setfont ter-112n 2>&1"
|
||||
(status, out) = machine.execute(command)
|
||||
pattern = re.compile(r".*Unable to find file:.*")
|
||||
match = pattern.match(out)
|
||||
if match:
|
||||
raise Exception("command `{}` failed".format(command))
|
||||
'';
|
||||
})
|
Loading…
Reference in a new issue