From dfb7bd89e1e4a49d880fa8348e56251db1e32915 Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 2 Dec 2022 12:54:42 +0100 Subject: [PATCH] tests swap: get jq from systemPackages --- tests/lib.nix | 3 +++ tests/swap.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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") |