types: fix negative relative disk size

This commit is contained in:
lassulus 2022-11-25 08:38:05 +01:00
parent 1668efc14a
commit 417ad31ca5
3 changed files with 43 additions and 5 deletions

11
tests/negative-size.nix Normal file
View file

@ -0,0 +1,11 @@
# this is a regression test for https://github.com/nix-community/disko/issues/52
{ pkgs ? (import <nixpkgs> { })
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
disko-config = ../example/negative-size.nix;
testBoot = false;
extraTestScript = ''
machine.succeed("mountpoint /mnt");
'';
}