[PATCH] D39037: check-libcxx: Introduce config.test_retry_attempts for std/thread.

NAKAMURA Takumi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 17 21:25:48 PDT 2017


chapuni created this revision.

I thought we could mark entire tests in std/thread as flaky.


Repository:
  rL LLVM

https://reviews.llvm.org/D39037

Files:
  libcxx/trunk/test/std/thread/lit.local.cfg
  libcxx/trunk/utils/libcxx/test/format.py


Index: libcxx/trunk/utils/libcxx/test/format.py
===================================================================
--- libcxx/trunk/utils/libcxx/test/format.py
+++ libcxx/trunk/utils/libcxx/test/format.py
@@ -202,6 +202,9 @@
                           for f in os.listdir(local_cwd) if f.endswith('.dat')]
             is_flaky = self._get_parser('FLAKY_TEST.', parsers).getValue()
             max_retry = 3 if is_flaky else 1
+            local_flaky = getattr(test.config, "test_retry_attempts", 0)
+            if local_flaky > 0:
+                max_retry = local_flaky
             for retry_count in range(max_retry):
                 cmd, out, err, rc = self.executor.run(exec_path, [exec_path],
                                                       local_cwd, data_files,
Index: libcxx/trunk/test/std/thread/lit.local.cfg
===================================================================
--- /dev/null
+++ libcxx/trunk/test/std/thread/lit.local.cfg
@@ -0,0 +1 @@
+config.test_retry_attempts = 3


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39037.119425.patch
Type: text/x-patch
Size: 1009 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171018/d71206b1/attachment.bin>


More information about the cfe-commits mailing list