2021-07-19 21:21:02 +02:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "kbd-update-search-paths-patch";
|
|
|
|
|
2022-03-21 00:15:30 +01:00
|
|
|
nodes.machine = { pkgs, options, ... }: {
|
2021-07-19 21:21:02 +02:00
|
|
|
console = {
|
|
|
|
packages = options.console.packages.default ++ [ pkgs.terminus_font ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
command = "${pkgs.kbd}/bin/setfont ter-112n 2>&1"
|
|
|
|
(status, out) = machine.execute(command)
|
2021-08-21 18:56:03 +02:00
|
|
|
import re
|
2021-07-19 21:21:02 +02:00
|
|
|
pattern = re.compile(r".*Unable to find file:.*")
|
|
|
|
match = pattern.match(out)
|
|
|
|
if match:
|
|
|
|
raise Exception("command `{}` failed".format(command))
|
|
|
|
'';
|
|
|
|
})
|