nixosTests.fsck{,-systemd-stage-1}: handleTest -> runTest
This commit is contained in:
parent
da6ecbe539
commit
bc32ab809c
@ -557,8 +557,14 @@ in
|
|||||||
froide-govplan = runTest ./web-apps/froide-govplan.nix;
|
froide-govplan = runTest ./web-apps/froide-govplan.nix;
|
||||||
frp = runTest ./frp.nix;
|
frp = runTest ./frp.nix;
|
||||||
frr = runTest ./frr.nix;
|
frr = runTest ./frr.nix;
|
||||||
fsck = handleTest ./fsck.nix { };
|
fsck = runTest {
|
||||||
fsck-systemd-stage-1 = handleTest ./fsck.nix { systemdStage1 = true; };
|
imports = [ ./fsck.nix ];
|
||||||
|
_module.args.systemdStage1 = false;
|
||||||
|
};
|
||||||
|
fsck-systemd-stage-1 = runTest {
|
||||||
|
imports = [ ./fsck.nix ];
|
||||||
|
_module.args.systemdStage1 = true;
|
||||||
|
};
|
||||||
ft2-clone = runTest ./ft2-clone.nix;
|
ft2-clone = runTest ./ft2-clone.nix;
|
||||||
legit = runTest ./legit.nix;
|
legit = runTest ./legit.nix;
|
||||||
mimir = runTest ./mimir.nix;
|
mimir = runTest ./mimir.nix;
|
||||||
|
|||||||
@ -1,29 +1,22 @@
|
|||||||
{
|
{ systemdStage1, ... }:
|
||||||
system ? builtins.currentSystem,
|
|
||||||
config ? { },
|
|
||||||
pkgs ? import ../.. { inherit system config; },
|
|
||||||
systemdStage1 ? false,
|
|
||||||
}:
|
|
||||||
|
|
||||||
import ./make-test-python.nix {
|
{
|
||||||
name = "fsck";
|
name = "fsck";
|
||||||
|
|
||||||
nodes.machine =
|
nodes.machine = {
|
||||||
{ lib, ... }:
|
virtualisation.emptyDiskImages = [ 1 ];
|
||||||
{
|
|
||||||
virtualisation.emptyDiskImages = [ 1 ];
|
|
||||||
|
|
||||||
virtualisation.fileSystems = {
|
virtualisation.fileSystems = {
|
||||||
"/mnt" = {
|
"/mnt" = {
|
||||||
device = "/dev/vdb";
|
device = "/dev/vdb";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
autoFormat = true;
|
autoFormat = true;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.systemd.enable = systemdStage1;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.initrd.systemd.enable = systemdStage1;
|
||||||
|
};
|
||||||
|
|
||||||
testScript =
|
testScript =
|
||||||
{ nodes, ... }:
|
{ nodes, ... }:
|
||||||
let
|
let
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user