at 23.05-pre 543 B view raw
1import ./make-test-python.nix ({ pkgs, ... }: { 2 name = "kbd-update-search-paths-patch"; 3 4 nodes.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 import re 14 pattern = re.compile(r".*Unable to find file:.*") 15 match = pattern.match(out) 16 if match: 17 raise Exception("command `{}` failed".format(command)) 18 ''; 19})