about summary refs log tree commit diff
path: root/nixos/tests/simple.nix
diff options
context:
space:
mode:
authorMarijan <marijan.petricevic94@gmail.com>2019-11-05 00:39:28 +0100
committerMarijan <marijan.petricevic@hotmail.de>2019-11-05 12:00:26 +0100
commit7d98a8ba77d075c3b058b2876b112ee8f0a70048 (patch)
treed037be8127466e201d9480ed34b0e9bcb7948804 /nixos/tests/simple.nix
parent16d2fccfd93228c9ce41e5c4703b54016bc83fc5 (diff)
nixos/simple: port test to python
Diffstat (limited to 'nixos/tests/simple.nix')
-rw-r--r--nixos/tests/simple.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/tests/simple.nix b/nixos/tests/simple.nix
index 84c5621d962fb..3810a2cd3a582 100644
--- a/nixos/tests/simple.nix
+++ b/nixos/tests/simple.nix
@@ -1,4 +1,4 @@
-import ./make-test.nix ({ pkgs, ...} : {
+import ./make-test-python.nix ({ pkgs, ...} : {
   name = "simple";
   meta = with pkgs.stdenv.lib.maintainers; {
     maintainers = [ eelco ];
@@ -10,8 +10,8 @@ import ./make-test.nix ({ pkgs, ...} : {
 
   testScript =
     ''
-      startAll;
-      $machine->waitForUnit("multi-user.target");
-      $machine->shutdown;
+      start_all()
+      machine.wait_for_unit("multi-user.target")
+      machine.shutdown()
     '';
 })