Sets exit code for continuous tests runner
This commit is contained in:
parent
960bef455a
commit
412a4d3c7a
|
@ -109,6 +109,7 @@ namespace ContinuousTests
|
|||
Cancellation.Cts.Cancel();
|
||||
overviewLog.Log($"Congratulations! The targer duration has been reached! ({Time.FormatDuration(targetDuration)})");
|
||||
statusLog.ConcludeTest("Passed", testDuration, testData);
|
||||
Environment.ExitCode = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -117,6 +118,7 @@ namespace ContinuousTests
|
|||
cancelToken.WaitHandle.WaitOne();
|
||||
}
|
||||
statusLog.ConcludeTest("Failed", testDuration, testData);
|
||||
Environment.ExitCode = 1;
|
||||
}
|
||||
|
||||
private Dictionary<string, string> FormatTestRuns(TestLoop[] testLoops)
|
||||
|
|
Loading…
Reference in New Issue