Add PrinterEmulator flag to run at slower speeds

This commit is contained in:
John Lewin 2016-09-23 10:52:58 -07:00
parent 800d91d184
commit d4fb4561c4
2 changed files with 16 additions and 4 deletions

View file

@ -137,7 +137,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
}
}
public static Process LaunchAndConnectToPrinterEmulator(AutomationRunner testRunner)
public static Process LaunchAndConnectToPrinterEmulator(AutomationRunner testRunner, bool runSlow = false)
{
// Load the TestEnv config
var config = TestAutomationConfig.Load();
@ -149,7 +149,11 @@ namespace MatterHackers.MatterControl.Tests.Automation
process.StartInfo = new ProcessStartInfo()
{
FileName = "python",
Arguments = string.Format("{0} {1}", StaticData.Instance.MapPath("../PrinterEmulator.py"), config.Printer),
Arguments = string.Format("{0} {1}{2}",
StaticData.Instance.MapPath("../PrinterEmulator.py"),
config.Printer,
runSlow ? " slow" : ""),
WindowStyle = ProcessWindowStyle.Minimized
};