Skip to content
Snippets Groups Projects
Commit d3a48ca8 authored by Ask Hjorth Larsen's avatar Ask Hjorth Larsen
Browse files

run tests in parallel

parent 38b99e98
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ import re
from optparse import OptionParser
from subprocess import Popen, PIPE
import os
from ase.parallel import world
p = OptionParser()
opts, args = p.parse_args()
......@@ -29,7 +30,9 @@ if len(args) == 0:
else:
testfiles = argv
for testfile in testfiles:
for i, testfile in enumerate(testfiles):
if i % world.size != world.rank:
continue
dirname, basename = os.path.split(testfile)
print(basename)
args = 'python main.py --annotate'.split()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment