Add PrinterEmulator flag to run at slower speeds
This commit is contained in:
parent
800d91d184
commit
d4fb4561c4
2 changed files with 16 additions and 4 deletions
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue