diff options
author | lassulus <lassulus@lassul.us> | 2022-12-02 12:54:42 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-12-02 12:54:42 +0100 |
commit | dfb7bd89e1e4a49d880fa8348e56251db1e32915 (patch) | |
tree | 885c13c0a73f994596f0572ad37f76142fd1c7f3 /tests | |
parent | efc80d7d89d40f54b76e0efcf83578c6b074906e (diff) |
tests swap: get jq from systemPackages
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib.nix | 3 | ||||
-rw-r--r-- | tests/swap.nix | 2 |
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") | |