Merge pull request #75180 from flokli/nixos-test-port-pam-u2f

nixosTests.pam-u2f: port test to python
This commit is contained in:
Florian Klink 2019-12-07 23:57:14 +01:00 committed by GitHub
commit 0c10431e4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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'
)
'';
})