mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
nixos/tests/kbd-update-search-paths: explicitly import re
This commit is contained in:
parent
f6b27bd905
commit
07f85e36e9
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
testScript = ''
|
testScript = ''
|
||||||
command = "${pkgs.kbd}/bin/setfont ter-112n 2>&1"
|
command = "${pkgs.kbd}/bin/setfont ter-112n 2>&1"
|
||||||
(status, out) = machine.execute(command)
|
(status, out) = machine.execute(command)
|
||||||
|
import re
|
||||||
pattern = re.compile(r".*Unable to find file:.*")
|
pattern = re.compile(r".*Unable to find file:.*")
|
||||||
match = pattern.match(out)
|
match = pattern.match(out)
|
||||||
if match:
|
if match:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue