summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Christ <matt@christ.systems>2021-12-07 20:35:50 -0600
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2021-12-08 15:11:18 +0000
commitf0e97ca6841b91f053db85246f785524685a9aa8 (patch)
tree24c8cf757cd7bc297a12d5a3b632a2e80f955bce
parentMerge pull request #149641 from NixOS/backport-149625-to-release-21.11 (diff)
downloadnixpkgs-origin/backport-149504-to-release-21.11.tar.gz
import 're' so we can do regex stuff in this test (cherry picked from commit 7b1d8bd18273ba25564a52a2b144ddf41f226ec3)
-rw-r--r--nixos/tests/brscan5.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/brscan5.nix b/nixos/tests/brscan5.nix
index 715191b383cb..9aed742f6de7 100644
--- a/nixos/tests/brscan5.nix
+++ b/nixos/tests/brscan5.nix
@@ -23,6 +23,7 @@ import ./make-test-python.nix ({ pkgs, ...} : {
};
testScript = ''
+ import re
# sane loads libsane-brother5.so.1 successfully, and scanimage doesn't die
strace = machine.succeed('strace scanimage -L 2>&1').split("\n")
regexp = 'openat\(.*libsane-brother5.so.1", O_RDONLY|O_CLOEXEC\) = \d\d*$'