ErrorFlags STOP stops cycle
This commit is contained in:
@@ -801,6 +801,7 @@ namespace TBF.Rig.TestMethods.FixedStart
|
||||
///
|
||||
Results.Entities.TestRslt tstRslt = BatchRslts.GetTestRslt(testName, test.Part);
|
||||
|
||||
bool stopCycle = false;
|
||||
if (tstRslt != null)
|
||||
{
|
||||
Results.Utils.GetCounterStates(tstRslt, Program.LocalSettings.Counters);
|
||||
@@ -838,7 +839,7 @@ namespace TBF.Rig.TestMethods.FixedStart
|
||||
tstRslt.DiverterStart = switchTimeStart;
|
||||
tstRslt.DiverterEnd = switchTimeEnd;
|
||||
long infoFlags = 0;
|
||||
tstRslt.ErrorFlags = (ErrorFlagsComp != null) ? ErrorFlagsComp.GetErrorFlags(tstRslt, false, true, switchTimeStart, switchTimeEnd, out infoFlags) : 0;
|
||||
tstRslt.ErrorFlags = (ErrorFlagsComp != null) ? ErrorFlagsComp.GetErrorFlags(tstRslt, false, true, switchTimeStart, switchTimeEnd, out infoFlags, out stopCycle) : 0;
|
||||
tstRslt.InfoFlags = infoFlags;
|
||||
|
||||
if (compound)
|
||||
@@ -1030,6 +1031,8 @@ namespace TBF.Rig.TestMethods.FixedStart
|
||||
/// Append the results to the CSV-file
|
||||
allResults.Info(TestResult2CsvLine(testName, test.Part));
|
||||
|
||||
if (stopCycle) retVal = Event.ErrorFlagsStop;
|
||||
|
||||
|
||||
stopTest:
|
||||
|
||||
@@ -1040,6 +1043,8 @@ namespace TBF.Rig.TestMethods.FixedStart
|
||||
///
|
||||
if (isLastRepetition || retVal == Event.UiCmdStop
|
||||
|| retVal == Event.OpArgumentError
|
||||
|| retVal == Event.RecoverableError
|
||||
|| retVal == Event.ErrorFlagsStop
|
||||
|| retVal == Event.Error
|
||||
|| retVal == Event.ConfigurationError)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user