diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2025-05-06 12:49:27 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-06 05:49:27 -0700 |
| commit | b0187cdb13ebbf1eaaf101cbfe8860a73280d644 (patch) | |
| tree | 75eb5fbaa14726089540ebac1c8c3241b1d11a1e /tools/slang-test/test-reporter.cpp | |
| parent | 91425ccb6ff0a416b67ef21eb3ecebb49ba3e748 (diff) | |
Retry when a few unit tests failed. (#6912)
This PR allows the failed unit-tests to be retried at the end as in a single threaded manner.
The purpose of the retry is to increase the stability of CI.
Diffstat (limited to 'tools/slang-test/test-reporter.cpp')
| -rw-r--r-- | tools/slang-test/test-reporter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/slang-test/test-reporter.cpp b/tools/slang-test/test-reporter.cpp index 88d24d212..1f6c00637 100644 --- a/tools/slang-test/test-reporter.cpp +++ b/tools/slang-test/test-reporter.cpp @@ -160,6 +160,11 @@ void TestReporter::addResult(TestResult result) m_numCurrentResults++; } +TestResult TestReporter::getResult() const +{ + return m_currentInfo.testResult; +} + void TestReporter::addExecutionTime(double time) { std::lock_guard<std::recursive_mutex> lock(m_mutex); |
