summaryrefslogtreecommitdiffstats
path: root/compiler-rt/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
commitf6e857c40291ec1bc2a211d7d90d7d3d543a2f45 (patch)
treefdde010437fc69ce9c177a6981eb643400c393aa /compiler-rt/unittests/lit_unittest_cfg_utils.py
parent72a622cac71c9f75615ce2197a0f2431b635993d (diff)
downloadbcm5719-llvm-f6e857c40291ec1bc2a211d7d90d7d3d543a2f45.tar.gz
bcm5719-llvm-f6e857c40291ec1bc2a211d7d90d7d3d543a2f45.zip
[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. llvm-svn: 299738
Diffstat (limited to 'compiler-rt/unittests/lit_unittest_cfg_utils.py')
-rw-r--r--compiler-rt/unittests/lit_unittest_cfg_utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/unittests/lit_unittest_cfg_utils.py b/compiler-rt/unittests/lit_unittest_cfg_utils.py
new file mode 100644
index 00000000000..ff7b1ee0140
--- /dev/null
+++ b/compiler-rt/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 ""
OpenPOWER on IntegriCloud