mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 06:56:58 +02:00
Create the latest_download dir if it doesn't exist.
I started to use /tmp, but it doesn't exist both inside and outside of the chroot. Using a consistent name like this has the advantage that the files will be cached and not redownloaded every time. Well, except on the build servers that wipe the related directories between builds. Change-Id: I58b42d9f1bd18cc4eb44043ed2436d4ffa482767 BUG=chromium-os:10012 TEST= Review URL: http://codereview.chromium.org/5597004
This commit is contained in:
parent
c9f365d707
commit
e55c89ab44
@ -48,7 +48,9 @@ class AUTest(object):
|
|||||||
# Set these up as they are used often.
|
# Set these up as they are used often.
|
||||||
self.crosutils = os.path.join(os.path.dirname(__file__), '..')
|
self.crosutils = os.path.join(os.path.dirname(__file__), '..')
|
||||||
self.crosutilsbin = os.path.join(os.path.dirname(__file__))
|
self.crosutilsbin = os.path.join(os.path.dirname(__file__))
|
||||||
self.download_folder = os.path.join(self.crosutilsbin, 'latest_download')
|
self.download_folder = os.path.join(self.crosutils, 'latest_download')
|
||||||
|
if not os.path.exists(self.download_folder):
|
||||||
|
os.makedirs(self.download_folder)
|
||||||
|
|
||||||
def GetStatefulChangeFlag(self, stateful_change):
|
def GetStatefulChangeFlag(self, stateful_change):
|
||||||
"""Returns the flag to pass to image_to_vm for the stateful change."""
|
"""Returns the flag to pass to image_to_vm for the stateful change."""
|
||||||
|
Loading…
Reference in New Issue
Block a user