[Libreoffice-commits] dev-tools.git: test-bugzilla-files/new-control.py
Markus Mohrhard
markus.mohrhard at googlemail.com
Sat Dec 27 09:02:07 PST 2014
test-bugzilla-files/new-control.py | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
New commits:
commit 6e752a8be4ab9870b9c47c0f167c2530ed898c16
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sat Dec 27 18:01:29 2014 +0100
fix script and use 32 processes for asan
diff --git a/test-bugzilla-files/new-control.py b/test-bugzilla-files/new-control.py
index 69dd9c4..ba90c6e 100644
--- a/test-bugzilla-files/new-control.py
+++ b/test-bugzilla-files/new-control.py
@@ -61,21 +61,15 @@ def usage():
if __name__ == "__main__":
opts, args = getopt.getopt(sys.argv[1:], "hd:a", ["help", "directory=", "asan"])
- print(args)
- print(opts)
if "-h" in opts or "--help" in opts:
usage()
sys.exit()
asan = 0
- print(opts[0])
- print("--asan" in opts[0])
- if "--asan" in opts[0]:
+ if opts.count() > 0 and "--asan" in opts[0]:
print("yeah")
asan = 1
- print(asan)
-
if len(args) == 0:
usage()
sys.exit(1)
@@ -88,7 +82,11 @@ if __name__ == "__main__":
sys.exit(1)
task_size = 100
- with concurrent.futures.ThreadPoolExecutor(max_workers=20) as executor:
+ workers = 20
+ if asan == 1:
+ workers = 32
+
+ with concurrent.futures.ThreadPoolExecutor(max_workers=workers) as executor:
future_to_task = {executor.submit(execute_task, task_file, asan): task_file for task_file in get_tasks(directory, task_size)}
for future in concurrent.futures.as_completed(future_to_task):
task = future_to_task[future]
More information about the Libreoffice-commits
mailing list