summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-12-07 23:16:59 +0100
committerFlorian Klink <flokli@flokli.de>2019-12-07 23:16:59 +0100
commit6b1faaf6845c875ae88104bae7378eecf740367d (patch)
treedb8b67eb072736375d40528a1ea4274aa8082c16 /nixos
parentc36b8c57c2b423ff034e373ee0ee01168a3ae43b (diff)
downloadnixpkgs-6b1faaf6845c875ae88104bae7378eecf740367d.tar
nixpkgs-6b1faaf6845c875ae88104bae7378eecf740367d.tar.gz
nixpkgs-6b1faaf6845c875ae88104bae7378eecf740367d.tar.bz2
nixpkgs-6b1faaf6845c875ae88104bae7378eecf740367d.tar.lz
nixpkgs-6b1faaf6845c875ae88104bae7378eecf740367d.tar.xz
nixpkgs-6b1faaf6845c875ae88104bae7378eecf740367d.tar.zst
nixpkgs-6b1faaf6845c875ae88104bae7378eecf740367d.zip
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'
+      )
     '';
 })