mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2026-02-02 17:35:08 +01:00
tests: pass lib to examples
This commit is contained in:
parent
c96ccd7d9f
commit
8666475b74
12 changed files with 59 additions and 13 deletions
11
tests/with-lib.nix
Normal file
11
tests/with-lib.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ pkgs ? (import <nixpkgs> { })
|
||||
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
||||
}:
|
||||
makeDiskoTest {
|
||||
disko-config = import ../example/with-lib.nix;
|
||||
extraTestScript = ''
|
||||
machine.succeed("mountpoint /");
|
||||
'';
|
||||
efi = false;
|
||||
grub-devices = [ "/dev/vdb" ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue