tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/tests: add kbd-update-search-paths-patch
Azure Zanculmarktum
4 years ago
88fbddc1
c455b1a6
+19
2 changed files
expand all
collapse all
unified
split
nixos
tests
all-tests.nix
kbd-update-search-paths-patch.nix
+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
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
1
+
import ./make-test-python.nix ({ pkgs, ... }: {
2
2
+
name = "kbd-update-search-paths-patch";
3
3
+
4
4
+
machine = { pkgs, options, ... }: {
5
5
+
console = {
6
6
+
packages = options.console.packages.default ++ [ pkgs.terminus_font ];
7
7
+
};
8
8
+
};
9
9
+
10
10
+
testScript = ''
11
11
+
command = "${pkgs.kbd}/bin/setfont ter-112n 2>&1"
12
12
+
(status, out) = machine.execute(command)
13
13
+
pattern = re.compile(r".*Unable to find file:.*")
14
14
+
match = pattern.match(out)
15
15
+
if match:
16
16
+
raise Exception("command `{}` failed".format(command))
17
17
+
'';
18
18
+
})