diff options
author | lassulus <lassulus@lassul.us> | 2022-11-25 08:38:05 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-11-25 08:38:47 +0100 |
commit | 417ad31ca5c149ff85bd5a4f61c81253e4906b65 (patch) | |
tree | 2e377dbebdaad9cfc023fad9cd1584faa516031b /tests | |
parent | 1668efc14a56f126cd4aaa3fc2569120e962c2a9 (diff) |
types: fix negative relative disk size
Diffstat (limited to 'tests')
-rw-r--r-- | tests/negative-size.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/negative-size.nix b/tests/negative-size.nix new file mode 100644 index 0000000..224b00c --- /dev/null +++ b/tests/negative-size.nix @@ -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"); + ''; +} |