Unverified Commit c12e462b authored by Grimmauld's avatar Grimmauld Committed by GitHub
Browse files

nixos/systemd: Add package version tests to integration tests (#443216)

parents 77d5a40d 2b80bf0b
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
{ pkgs, ... }:
{ lib, pkgs, ... }:
{
  name = "systemd";

@@ -108,6 +108,14 @@
      # Will not succeed unless ConditionFirstBoot=yes
      machine.wait_for_unit("first-boot-complete.target")

      machine.succeed(
        "journalctl --system -o cat --grep 'systemd ${lib.escapeRegex pkgs.systemd.version} running'"
      )

      assert "systemd ${lib.versions.major pkgs.systemd.version} (${pkgs.systemd.version})" in machine.succeed(
        "systemctl --version"
      )

      # Make sure, a subsequent boot isn't a ConditionFirstBoot=yes.
      machine.reboot()
      machine.wait_for_x()