From 412a4d3c7a5cfa83831fd7dfcf311aa1759a30de Mon Sep 17 00:00:00 2001 From: benbierens Date: Mon, 13 Nov 2023 11:17:26 +0100 Subject: [PATCH] Sets exit code for continuous tests runner --- Tests/CodexContinuousTests/ContinuousTestRunner.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/CodexContinuousTests/ContinuousTestRunner.cs b/Tests/CodexContinuousTests/ContinuousTestRunner.cs index 77fffea..e1808d9 100644 --- a/Tests/CodexContinuousTests/ContinuousTestRunner.cs +++ b/Tests/CodexContinuousTests/ContinuousTestRunner.cs @@ -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 FormatTestRuns(TestLoop[] testLoops)