summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-07-10 09:39:47 +0200
committerlassulus <lassulus@lassul.us>2022-07-10 09:41:53 +0200
commit2fc06462ce5c31d363686b110b42d653b6f8f366 (patch)
tree9ac912ee4bb5597981300c2b68f937e89cc2914c /tests
parent7dce65dd281df6b3d441a18a2bc564c9a05cc706 (diff)
fix: make test work with up2date nixpkgs
Diffstat (limited to 'tests')
-rw-r--r--tests/test.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test.nix b/tests/test.nix
index 2ab28bf..76bc5ea 100644
--- a/tests/test.nix
+++ b/tests/test.nix
@@ -1,4 +1,4 @@
-import <nixpkgs/nixos/tests/make-test.nix> ({ pkgs, ... }: let
+import <nixpkgs/nixos/tests/make-test-python.nix> ({ pkgs, ... }: let
disko-config = {
type = "devices";
@@ -82,7 +82,7 @@ import <nixpkgs/nixos/tests/make-test.nix> ({ pkgs, ... }: let
in {
name = "disko";
- machine =
+ nodes.machine =
{ config, pkgs, ... }:
{
@@ -96,10 +96,10 @@ in {
testScript =
''
- $machine->succeed("echo 'secret' > /tmp/secret.key");
- $machine->succeed("${pkgs.writeScript "create" ((import ../lib).create disko-config)}");
- $machine->succeed("${pkgs.writeScript "mount" ((import ../lib).mount disko-config)}");
- $machine->succeed("test -b /dev/mapper/pool-raw");
+ machine.succeed("echo 'secret' > /tmp/secret.key");
+ machine.succeed("${pkgs.writeScript "create" ((import ../lib).create disko-config)}");
+ machine.succeed("${pkgs.writeScript "mount" ((import ../lib).mount disko-config)}");
+ machine.succeed("test -b /dev/mapper/pool-raw");
'';
})