diff options
Diffstat (limited to 'nixpkgs/nixos/tests/kbd-update-search-paths-patch.nix')
-rw-r--r-- | nixpkgs/nixos/tests/kbd-update-search-paths-patch.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/kbd-update-search-paths-patch.nix b/nixpkgs/nixos/tests/kbd-update-search-paths-patch.nix new file mode 100644 index 000000000000..746a809c4cdf --- /dev/null +++ b/nixpkgs/nixos/tests/kbd-update-search-paths-patch.nix @@ -0,0 +1,19 @@ +import ./make-test-python.nix ({ pkgs, ... }: { + name = "kbd-update-search-paths-patch"; + + nodes.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) + import re + pattern = re.compile(r".*Unable to find file:.*") + match = pattern.match(out) + if match: + raise Exception("command `{}` failed".format(command)) + ''; +}) |