Skip to content
Snippets Groups Projects

Flow v1.5

Merged Boman Romain requested to merge adrien into master
2 files
+ 11
10
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 11
1
@@ -160,10 +160,20 @@ def setupwdir(testname):
wdir=os.path.join('workspace', resdir)
if rank == 0:
# rank0 is in charge of creating the folder...
# rank0 is in charge of creating the folder...
args = parseargs()
if not os.path.isdir(wdir):
print "creating", wdir
os.makedirs(wdir)
elif os.path.isdir(wdir) and args.clean:
print 'cleaning', wdir
import shutil
for f in os.listdir(wdir):
fpth = os.path.join(wdir, f)
if os.path.isfile(fpth):
os.remove(fpth)
elif os.path.isdir(fpth):
shutil.rmtree(fpth)
if siz>1: # if multiple process => send sync to slaves.
for i in range(1,siz):
Loading