Sets exit code for continuous tests runner

This commit is contained in:
benbierens 2023-11-13 11:17:26 +01:00
parent 960bef455a
commit 412a4d3c7a
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 2 additions and 0 deletions

View File

@ -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)