tests swap: get jq from systemPackages

This commit is contained in:
lassulus 2022-12-02 12:54:42 +01:00
parent efc80d7d89
commit dfb7bd89e1
2 changed files with 4 additions and 1 deletions

View File

@ -60,6 +60,9 @@
efiSupport = efi;
efiInstallAsRemovable = efi;
};
environment.systemPackages = [
pkgs.jq
];
};
installedTopLevel = (eval-config {
modules = [ installed-system ];

View File

@ -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") |