summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib.nix3
-rw-r--r--tests/swap.nix2
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib.nix b/tests/lib.nix
index 6d787ed..95f267e 100644
--- a/tests/lib.nix
+++ b/tests/lib.nix
@@ -60,6 +60,9 @@
efiSupport = efi;
efiInstallAsRemovable = efi;
};
+ environment.systemPackages = [
+ pkgs.jq
+ ];
};
installedTopLevel = (eval-config {
modules = [ installed-system ];
diff --git a/tests/swap.nix b/tests/swap.nix
index fa090f8..d3268dc 100644
--- a/tests/swap.nix
+++ b/tests/swap.nix
@@ -8,7 +8,7 @@ makeDiskoTest {
machine.succeed("swapon --show >&2");
machine.succeed("""
lsblk --json |
- ${pkgs.jq}/bin/jq -e '.blockdevices[] |
+ jq -e '.blockdevices[] |
select(.name == "vda") |
.children[] |
select(.name == "vda3") |