Merge pull request #135089 from nlewo/kdb-update

nixos/tests/kbd-update-search-paths: explicitly import re
This commit is contained in:
lewo 2021-08-22 16:04:35 +02:00 committed by GitHub
commit 79e5ee0c76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: