Avoid race condition on creating directory by pre-creating early.

Change-Id: I9fed7319609848ba90abfaa147fad85bd4114fdc

BUG=TreeCloser
TEST=Ran it locally in a VM a cpl times.

Review URL: http://codereview.chromium.org/6696002
This commit is contained in:
Chris Sosa 2011-03-14 15:52:13 -07:00
parent 9d30ce80fa
commit 574be57684

View File

@ -275,6 +275,10 @@ def main():
# Clean up previous work if requested.
if options.clean: _CleanPreviousWork(options)
# Make sure we have a log directory.
if not os.path.exists(options.test_results_root):
os.makedirs(options.test_results_root)
# Generate cache of updates to use during test harness.
update_cache = _PregenerateUpdates(options)
au_worker.AUWorker.SetUpdateCache(update_cache)