Unverified Commit ed70f008 authored by r-vdp's avatar r-vdp
Browse files

systemd-initrd: migrate test to runTest and add comment for syntax highlighting of test script

parent 01b589a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1296,7 +1296,7 @@ in
  systemd-initrd-luks-unl0kr = handleTest ./systemd-initrd-luks-unl0kr.nix { };
  systemd-initrd-modprobe = handleTest ./systemd-initrd-modprobe.nix { };
  systemd-initrd-shutdown = handleTest ./systemd-shutdown.nix { systemdStage1 = true; };
  systemd-initrd-simple = handleTest ./systemd-initrd-simple.nix { };
  systemd-initrd-simple = runTest ./systemd-initrd-simple.nix;
  systemd-initrd-swraid = handleTest ./systemd-initrd-swraid.nix { };
  systemd-initrd-vconsole = handleTest ./systemd-initrd-vconsole.nix { };
  systemd-initrd-networkd = handleTest ./systemd-initrd-networkd.nix { };
+15 −16
Original line number Diff line number Diff line
import ./make-test-python.nix (
  { lib, pkgs, ... }:
{
  name = "systemd-initrd-simple";

@@ -11,7 +9,9 @@ import ./make-test-python.nix (
      virtualisation.fileSystems."/".autoResize = true;
    };

    testScript = ''
  testScript =
    # python
    ''
      import subprocess

      with subtest("testing initrd backdoor"):
@@ -55,4 +55,3 @@ import ./make-test-python.nix (
          machine.fail("journalctl -b 0 | grep 'is marked world-writable, which is a security risk as it is executed with privileges'")
    '';
}
)