From 417ad31ca5c149ff85bd5a4f61c81253e4906b65 Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 25 Nov 2022 08:38:05 +0100 Subject: types: fix negative relative disk size --- tests/negative-size.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/negative-size.nix (limited to 'tests') 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 { }) +, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest +}: +makeDiskoTest { + disko-config = ../example/negative-size.nix; + testBoot = false; + extraTestScript = '' + machine.succeed("mountpoint /mnt"); + ''; +} -- cgit v1.2.3