nixosTests.fsck{,-systemd-stage-1}: handleTest -> runTest

Changed files
+20 -21
nixos
+8 -2
nixos/tests/all-tests.nix
···
froide-govplan = runTest ./web-apps/froide-govplan.nix;
frp = runTest ./frp.nix;
frr = runTest ./frr.nix;
-
fsck = handleTest ./fsck.nix { };
-
fsck-systemd-stage-1 = handleTest ./fsck.nix { systemdStage1 = true; };
+
fsck = runTest {
+
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;
legit = runTest ./legit.nix;
mimir = runTest ./mimir.nix;
+12 -19
nixos/tests/fsck.nix
···
-
{
-
system ? builtins.currentSystem,
-
config ? { },
-
pkgs ? import ../.. { inherit system config; },
-
systemdStage1 ? false,
-
}:
+
{ systemdStage1, ... }:
-
import ./make-test-python.nix {
+
{
name = "fsck";
-
nodes.machine =
-
{ lib, ... }:
-
{
-
virtualisation.emptyDiskImages = [ 1 ];
+
nodes.machine = {
+
virtualisation.emptyDiskImages = [ 1 ];
-
virtualisation.fileSystems = {
-
"/mnt" = {
-
device = "/dev/vdb";
-
fsType = "ext4";
-
autoFormat = true;
-
};
+
virtualisation.fileSystems = {
+
"/mnt" = {
+
device = "/dev/vdb";
+
fsType = "ext4";
+
autoFormat = true;
};
+
};
-
boot.initrd.systemd.enable = systemdStage1;
-
};
+
boot.initrd.systemd.enable = systemdStage1;
+
};
testScript =
{ nodes, ... }: