mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
add test for hybrid configuration
This commit is contained in:
parent
daaba55a28
commit
d23fcb611e
2 changed files with 11 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
||||||
{ disk, ... }:
|
{ disks ? [ "/dev/vda" ], ... }:
|
||||||
{
|
{
|
||||||
disk = {
|
disk = {
|
||||||
main = {
|
main = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = disk;
|
device = builtins.elemAt disks 0;
|
||||||
content = {
|
content = {
|
||||||
type = "table";
|
type = "table";
|
||||||
format = "gpt";
|
format = "gpt";
|
||||||
|
|
9
tests/hybrid.nix
Normal file
9
tests/hybrid.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ pkgs ? (import <nixpkgs> { })
|
||||||
|
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
||||||
|
}:
|
||||||
|
makeDiskoTest {
|
||||||
|
disko-config = ../example/hybrid.nix;
|
||||||
|
extraTestScript = ''
|
||||||
|
machine.succeed("mountpoint /");
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue