Explicitly close MatterControl on test conclusion
This commit is contained in:
parent
ca641f8b13
commit
b1842e58fe
2 changed files with 12 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit eef74d845619cea7d82ad3e3df3053c30f60ef18
|
||||
Subproject commit c7e6e05770146a303040aba662536e85ced5f20d
|
||||
|
|
@ -485,7 +485,17 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
// Extract mouse speed from config
|
||||
AutomationRunner.TimeToMoveMouse = config.TimeToMoveMouse;
|
||||
|
||||
await AutomationRunner.ShowWindowAndExecuteTests(matterControlWindow, testMethod, maxTimeToRun, defaultTestImages, config.AutomationInputType);
|
||||
await AutomationRunner.ShowWindowAndExecuteTests(matterControlWindow, testMethod, maxTimeToRun, defaultTestImages, config.AutomationInputType, () =>
|
||||
{
|
||||
if (PrinterConnectionAndCommunication.Instance.CommunicationState == PrinterConnectionAndCommunication.CommunicationStates.Printing)
|
||||
{
|
||||
PrinterConnectionAndCommunication.Instance.Disable();
|
||||
}
|
||||
|
||||
MatterControlApplication app = MatterControlApplication.Instance;
|
||||
app.RestartOnClose = false;
|
||||
app.Close();
|
||||
});
|
||||
}
|
||||
|
||||
public static void LibraryAddSelectionToQueue(AutomationRunner testRunner)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue