From b0187cdb13ebbf1eaaf101cbfe8860a73280d644 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Tue, 6 May 2025 12:49:27 +0000 Subject: 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. --- tools/slang-test/test-reporter.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/slang-test/test-reporter.cpp') 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 lock(m_mutex); -- cgit v1.2.3