anchor.diff:        with subtest("Set grub to boot the second configuration"):
             machine.succeed("grub-reboot 1")
   
  +      ${postBootCommands}
         machine.shutdown()
   
         # Reboot Machine
  
positive.code:       with subtest("We should find a file named /etc/gitconfig"):
            machine.succeed("test -e /etc/gitconfig")
  
        machine.shutdown()
      '';
  
  
    makeInstallerTest = name:
      { createPartitions, preBootCommands ? "", extraConfig ? ""
      , extraInstallerConfig ? {}
      , bootLoader ? "grub" # either "grub" or "systemd-boot"
      , grubVersion ? 2, grubDevice ? "/dev/vda", grubIdentifier ? "uuid", grubUseEfi ? false
  
negative.code:       machine = create_machine_named("boot-after-rebuild-switch")
        ${preBootCommands}
        machine.wait_for_unit("network.target")
        ${postBootCommands}
        machine.shutdown()
  
        # Tests for validating clone configuration entries in grub menu
  