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-context.h | |
| 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-context.h')
| -rw-r--r-- | tools/slang-test/test-context.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/slang-test/test-context.h b/tools/slang-test/test-context.h index 5a30e19f7..97562da99 100644 --- a/tools/slang-test/test-context.h +++ b/tools/slang-test/test-context.h @@ -180,9 +180,10 @@ public: std::mutex mutex; Slang::RefPtr<Slang::JSONRPCConnection> m_languageServerConnection; - - std::mutex mutexFailedFileTests; + bool isRetry; + std::mutex mutexFailedTests; Slang::List<Slang::RefPtr<FileTestInfo>> failedFileTests; + Slang::List<Slang::String> failedUnitTests; Slang::IFileCheck* getFileCheck() { return m_fileCheck; }; |
