nixos/tests: add kbd-update-search-paths-patch

+19
+1
nixos/tests/all-tests.nix
··· 204 204 k3s = handleTest ./k3s.nix {}; 205 205 kafka = handleTest ./kafka.nix {}; 206 206 kbd-setfont-decompress = handleTest ./kbd-setfont-decompress.nix {}; 207 + kbd-update-search-paths-patch = handleTest ./kbd-update-search-paths-patch.nix {}; 207 208 kea = handleTest ./kea.nix {}; 208 209 keepalived = handleTest ./keepalived.nix {}; 209 210 keepassxc = handleTest ./keepassxc.nix {};
+18
nixos/tests/kbd-update-search-paths-patch.nix
··· 1 + import ./make-test-python.nix ({ pkgs, ... }: { 2 + name = "kbd-update-search-paths-patch"; 3 + 4 + machine = { pkgs, options, ... }: { 5 + console = { 6 + packages = options.console.packages.default ++ [ pkgs.terminus_font ]; 7 + }; 8 + }; 9 + 10 + testScript = '' 11 + command = "${pkgs.kbd}/bin/setfont ter-112n 2>&1" 12 + (status, out) = machine.execute(command) 13 + pattern = re.compile(r".*Unable to find file:.*") 14 + match = pattern.match(out) 15 + if match: 16 + raise Exception("command `{}` failed".format(command)) 17 + ''; 18 + })