Unverified Commit 5a247ad1 authored by Paul Haerle's avatar Paul Haerle Committed by GitHub
Browse files

nixos/tests/appliance-repart-image: fix (#466659)

parents 0ae7489c 7e4500f6
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -118,11 +118,14 @@ in
      # Set NIX_DISK_IMAGE so that the qemu script finds the right disk image.
      os.environ['NIX_DISK_IMAGE'] = tmp_disk_image.name

      with subtest("/etc/os-release contains the right fileds"):
        os_release = machine.succeed("cat /etc/os-release")
      assert 'IMAGE_ID="${imageId}"' in os_release
      assert 'IMAGE_VERSION="${imageVersion}"' in os_release
        t.assertIn('IMAGE_ID="${imageId}"', os_release)
        t.assertIn('IMAGE_VERSION="${imageVersion}"', os_release)

      with subtest("Bootctl reports the right boot loader type"):
        bootctl_status = machine.succeed("bootctl status")
      assert "Boot Loader Specification Type #2 (.efi)" in bootctl_status
        print(bootctl_status)
        t.assertIn("Boot Loader Specification Type #2", bootctl_status)
    '';
}