1import ./make-test-python.nix (
2 { pkgs, ... }:
3 {
4 name = "kbd-update-search-paths-patch";
5
6 nodes.machine =
7 { pkgs, options, ... }:
8 {
9 console = {
10 packages = options.console.packages.default ++ [ pkgs.terminus_font ];
11 };
12 };
13
14 testScript = ''
15 command = "${pkgs.kbd}/bin/setfont ter-112n 2>&1"
16 (status, out) = machine.execute(command)
17 import re
18 pattern = re.compile(r".*Unable to find file:.*")
19 match = pattern.match(out)
20 if match:
21 raise Exception("command `{}` failed".format(command))
22 '';
23 }
24)