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();
|
Cancellation.Cts.Cancel();
|
||||||
overviewLog.Log($"Congratulations! The targer duration has been reached! ({Time.FormatDuration(targetDuration)})");
|
overviewLog.Log($"Congratulations! The targer duration has been reached! ({Time.FormatDuration(targetDuration)})");
|
||||||
statusLog.ConcludeTest("Passed", testDuration, testData);
|
statusLog.ConcludeTest("Passed", testDuration, testData);
|
||||||
|
Environment.ExitCode = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -117,6 +118,7 @@ namespace ContinuousTests
|
||||||
cancelToken.WaitHandle.WaitOne();
|
cancelToken.WaitHandle.WaitOne();
|
||||||
}
|
}
|
||||||
statusLog.ConcludeTest("Failed", testDuration, testData);
|
statusLog.ConcludeTest("Failed", testDuration, testData);
|
||||||
|
Environment.ExitCode = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Dictionary<string, string> FormatTestRuns(TestLoop[] testLoops)
|
private Dictionary<string, string> FormatTestRuns(TestLoop[] testLoops)
|
||||||
|
|
Loading…
Reference in New Issue