nixos/tests/kbd-update-search-paths: explicitly import re

This commit is contained in:
Antoine Eiche 2021-08-21 18:56:03 +02:00
parent f6b27bd905
commit 07f85e36e9

View File

@ -10,6 +10,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
testScript = ''
command = "${pkgs.kbd}/bin/setfont ter-112n 2>&1"
(status, out) = machine.execute(command)
import re
pattern = re.compile(r".*Unable to find file:.*")
match = pattern.match(out)
if match: