summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-12-07 23:57:14 +0100
committerGitHub <noreply@github.com>2019-12-07 23:57:14 +0100
commit0c10431e4b4d829f14ce2553136dcafdd763570d (patch)
tree1f3ff1d03fbe97c0648a1f280299dd031ee87800 /nixos
parent91480faba468893911e3f3e91aeacdcef51c6bb4 (diff)
parent6b1faaf6845c875ae88104bae7378eecf740367d (diff)
downloadnixpkgs-0c10431e4b4d829f14ce2553136dcafdd763570d.tar
nixpkgs-0c10431e4b4d829f14ce2553136dcafdd763570d.tar.gz
nixpkgs-0c10431e4b4d829f14ce2553136dcafdd763570d.tar.bz2
nixpkgs-0c10431e4b4d829f14ce2553136dcafdd763570d.tar.lz
nixpkgs-0c10431e4b4d829f14ce2553136dcafdd763570d.tar.xz
nixpkgs-0c10431e4b4d829f14ce2553136dcafdd763570d.tar.zst
nixpkgs-0c10431e4b4d829f14ce2553136dcafdd763570d.zip
Merge pull request #75180 from flokli/nixos-test-port-pam-u2f
nixosTests.pam-u2f: port test to python
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/pam-u2f.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos/tests/pam-u2f.nix b/nixos/tests/pam-u2f.nix
index 1052a2f3b91..f492baa9e13 100644
--- a/nixos/tests/pam-u2f.nix
+++ b/nixos/tests/pam-u2f.nix
@@ -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'
+      )
     '';
 })