mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 06:23:28 +01:00
tests swap: get jq from systemPackages
This commit is contained in:
1 parent
efc80d7d89
commit
dfb7bd89e1
2 files changed
+4
-1
No files matched your search
@@ -60,6 +60,9 @@
|
|||||||
efiSupport = efi;
|
efiSupport = efi;
|
||||||
efiInstallAsRemovable = efi;
|
efiInstallAsRemovable = efi;
|
||||||
};
|
};
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.jq
|
||||||
|
];
|
||||||
};
|
};
|
||||||
installedTopLevel = (eval-config {
|
installedTopLevel = (eval-config {
|
||||||
modules = [ installed-system ];
|
modules = [ installed-system ];
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ makeDiskoTest {
|
|||||||
machine.succeed("swapon --show >&2");
|
machine.succeed("swapon --show >&2");
|
||||||
machine.succeed("""
|
machine.succeed("""
|
||||||
lsblk --json |
|
lsblk --json |
|
||||||
${pkgs.jq}/bin/jq -e '.blockdevices[] |
|
jq -e '.blockdevices[] |
|
||||||
select(.name == "vda") |
|
select(.name == "vda") |
|
||||||
.children[] |
|
.children[] |
|
||||||
select(.name == "vda3") |
|
select(.name == "vda3") |
|
||||||
|
|||||||
Reference in new issue
Block a user