summaryrefslogtreecommitdiff
path: root/unittests/lit_unittest_cfg_utils.py
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-04-07 01:23:15 +0000
committerReid Kleckner <rnk@google.com>2017-04-07 01:23:15 +0000
commit5a5d83e7f9aa2b358697712f94bcc4495242b0e4 (patch)
tree6128422c8509c5538ab36f0972faf4f4534aa215 /unittests/lit_unittest_cfg_utils.py
parent58cce4a232c4be366fc49418a89c7da8902f6a86 (diff)
[lit] Fix Darwin pickling errors with process pools
For a function to be pickle-able, it has to be in the top-level of a real Python module. So, I made one for this code snippet. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@299738 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/lit_unittest_cfg_utils.py')
-rw-r--r--unittests/lit_unittest_cfg_utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/lit_unittest_cfg_utils.py b/unittests/lit_unittest_cfg_utils.py
new file mode 100644
index 000000000..ff7b1ee01
--- /dev/null
+++ b/unittests/lit_unittest_cfg_utils.py
@@ -0,0 +1,4 @@
+# Put all 64-bit sanitizer tests in the darwin-64bit-sanitizer parallelism
+# group. This will only run three of them concurrently.
+def darwin_sanitizer_parallelism_group_func(test):
+ return "darwin-64bit-sanitizer" if "x86_64" in test.file_path else ""