Execute(...) arguments changed everywhere, repetitionNr usage depends on outerLoopMode, outerLoopCounter, ver. 2.12.412
This commit is contained in:
+3
-3
@@ -26,7 +26,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartAdvanced
|
||||
/// Event.OpArgumentError . Target flow is out of range
|
||||
/// Event.Error . . . . . . Unspecified error
|
||||
/// </returns>
|
||||
public IList<Event> Execute(Config.Entities.Test test)
|
||||
public IList<Event> Execute(Config.Entities.Test test, bool outerLoopMode, int outerLoopCounter)
|
||||
{
|
||||
Elde.ControlBoardDev cBrd = StateMachine.ControlBoard;
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartAdvanced
|
||||
float[] wmBeginStates = new float[Config.Data.WMsCount];
|
||||
float[] wmEndStates = new float[Config.Data.WMsCount];
|
||||
|
||||
int repetitionNr = 1; /// First test: repetitionNr=1
|
||||
int repetitionNr = outerLoopMode ? outerLoopCounter : 1; /// First test: repetitionNr=1
|
||||
|
||||
//====================================
|
||||
// Transition or SetRoute - Start
|
||||
@@ -594,7 +594,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartAdvanced
|
||||
allResults.Info(TestResult2CsvLine(testName, test.Part));
|
||||
|
||||
|
||||
if (++repetitionNr <= test.Repeats)
|
||||
if (!outerLoopMode && (++repetitionNr <= test.Repeats))
|
||||
{
|
||||
goto loop;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartAdvanced.Single
|
||||
|
||||
public IList<Event> Execute(Test test, bool outerLoopMode, int outerLoopCounter)
|
||||
{
|
||||
return (new FixedStartAdvancedSeq()).Execute(test);
|
||||
return (new FixedStartAdvancedSeq()).Execute(test, outerLoopMode, outerLoopCounter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user