mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 20:26:44 +02:00
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:
parent
9d30ce80fa
commit
574be57684
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user