summaryrefslogtreecommitdiff
path: root/scripts/gen_run_tests.py
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-05-26 11:24:08 -0700
committerJason Evans <jasone@canonware.com>2017-05-26 16:17:01 -0700
commit57aaa53f2bf85da0ea265f94c25990f108c3b342 (patch)
tree12b7e23e4a31c4261a6743adcd480ade7cd158c7 /scripts/gen_run_tests.py
parent927239b910310f95aebb1f0ffc6fda53f93c8b7e (diff)
Fix run_tests to avoid percpu_arena on !Linux.
Diffstat (limited to 'scripts/gen_run_tests.py')
-rwxr-xr-xscripts/gen_run_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gen_run_tests.py b/scripts/gen_run_tests.py
index f9b00604..1d70057f 100755
--- a/scripts/gen_run_tests.py
+++ b/scripts/gen_run_tests.py
@@ -60,9 +60,9 @@ for cc, cxx in possible_compilers:
# Heap profiling and dss are not supported on OS X.
darwin_unsupported = ('--enable-prof' in config_opts or \
'dss:primary' in malloc_conf_opts)
- if uname is 'Linux' and linux_supported \
- or uname is not 'Darwin' \
- or not darwin_unsupported:
+ if (uname == 'Linux' and linux_supported) \
+ or (not linux_supported and (uname != 'Darwin' or \
+ not darwin_unsupported)):
print """cat <<EOF > run_test_%(ind)d.sh
#!/bin/sh