mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixosTests.fsck{,-systemd-stage-1}: handleTest -> runTest
This commit is contained in:
parent
da6ecbe539
commit
bc32ab809c
2 changed files with 20 additions and 21 deletions
|
@ -557,8 +557,14 @@ in
|
|||
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;
|
||||
|
|
|
@ -1,29 +1,22 @@
|
|||
{
|
||||
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, ... }:
|
||||
let
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue