2 name = "qemu-private-store-mount-grep";
6 includeTestScriptReferences = false;
10 private = _: { imports = [ ../modules/qemu-vm-isolation.nix ]; };
13 sharedDirectories = pkgs.lib.mkForce { };
14 useNixStoreImage = true;
21 for machine in [shared, private, useNixStoreImage]:
22 machine.wait_for_unit("multi-user.target")
24 shared.succeed("[[ $(mount | grep -c virt) -gt 0 ]]")
25 shared.succeed("[[ -e ${pkgs.pv} ]]")
27 for machine in [private, useNixStoreImage]:
28 machine.succeed("[[ $(mount | grep -c virt) -eq 0 ]]")
29 machine.fail("[[ -e ${pkgs.pv} ]]")