Loading nixos/tests/appliance-repart-image.nix +9 −6 Original line number Diff line number Diff line Loading @@ -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) ''; } Loading
nixos/tests/appliance-repart-image.nix +9 −6 Original line number Diff line number Diff line Loading @@ -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) ''; }