nixosTests.pam-u2f: port test to python

This commit is contained in:
Florian Klink 2019-12-07 23:16:59 +01:00
parent c36b8c57c2
commit 6b1faaf684

View File

@ -1,4 +1,4 @@
import ./make-test.nix ({ ... }:
import ./make-test-python.nix ({ ... }:
{
name = "pam-u2f";
@ -17,7 +17,9 @@ import ./make-test.nix ({ ... }:
testScript =
''
$machine->waitForUnit('multi-user.target');
$machine->succeed('egrep "auth required .*/lib/security/pam_u2f.so.*debug.*interactive.*cue" /etc/pam.d/ -R');
machine.wait_for_unit("multi-user.target")
machine.succeed(
'egrep "auth required .*/lib/security/pam_u2f.so.*debug.*interactive.*cue" /etc/pam.d/ -R'
)
'';
})