brscan5: fix nixos test

import 're' so we can do regex stuff in this test
This commit is contained in:
Matt Christ 2021-12-07 20:35:50 -06:00
parent bd2c3952b8
commit 7b1d8bd182

View file

@ -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*$'