- Include root in valid directories
- AppSetting bug fix - Updated testes with base test class and editor configuration changes - Created new server and wafer counter tasks json files and pipelines to match
This commit is contained in:
21
Tests/BaseTestClass.cs
Normal file
21
Tests/BaseTestClass.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace OI.Metrology.Tests;
|
||||
|
||||
public class BaseTestClass
|
||||
{
|
||||
|
||||
private static int _FailedTests;
|
||||
private readonly int _Threshold = 5;
|
||||
|
||||
protected void IncrementFailedTests()
|
||||
{
|
||||
if (++_FailedTests >= _Threshold)
|
||||
{
|
||||
for (int i = 0; i < 10; i++)
|
||||
Thread.Sleep(500);
|
||||
Process.GetCurrentProcess().Kill();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user