Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2314)

Unified Diff: bin/cros_au_test_harness.py

Issue 5597004: Create the latest_download dir if it doesn't exist. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Move download folder to crosutils. Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/cros_au_test_harness.py
diff --git a/bin/cros_au_test_harness.py b/bin/cros_au_test_harness.py
index eacf837d1856df1d01b555ca2ee8eb9e8d59c125..3ffdac53cc24a276a0ce69a9ceff8cf0c6730268 100755
--- a/bin/cros_au_test_harness.py
+++ b/bin/cros_au_test_harness.py
@@ -48,7 +48,9 @@ class AUTest(object):
# Set these up as they are used often.
self.crosutils = 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):
"""Returns the flag to pass to image_to_vm for the stateful change."""
@@ -89,7 +91,7 @@ class AUTest(object):
def _UpdateImageReportError(self, image_path, stateful_change='old'):
"""Calls UpdateImage and reports any error to the console.
-
+
Still throws the exception.
"""
try:
@@ -331,7 +333,7 @@ class VirtualAUTest(unittest.TestCase, AUTest):
"""Creates an update-able VM based on base image."""
self.vm_image_path = '%s/chromiumos_qemu_image.bin' % os.path.dirname(
image_path)
-
+
Info('Creating: %s' % self.vm_image_path)
if not os.path.exists(self.vm_image_path):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698