unit tests : fixed failing tests

This commit is contained in:
alalazo 2016-04-29 13:58:44 +02:00 committed by Todd Gamblin
parent 34fe51a4aa
commit b3a6e307b9

View File

@ -707,7 +707,10 @@ def prefix_lock(self):
if not os.path.exists(lock_file):
tty.debug('TOUCH FILE : {0}'.format(lock_file))
try:
os.makedirs(dirname)
except OSError:
pass
touch(lock_file)
self._prefix_lock = llnl.util.lock.Lock(lock_file)