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

Unified Diff: infra/bots/common.py

Issue 1749623003: Swarming Tests: create tmp dir if it doesn't exist (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 months 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: infra/bots/common.py
diff --git a/infra/bots/common.py b/infra/bots/common.py
index 24d49960582c6d24424215c22acc3f22cc3d65a5..2748c540998ffc2449609fd891080c8e8cca3ecb 100644
--- a/infra/bots/common.py
+++ b/infra/bots/common.py
@@ -295,6 +295,8 @@ class BotInfo(object):
self.flavor.create_clean_device_dir(self.device_dirs.dm_dir)
# Obtain the list of already-generated hashes.
+ if not os.path.isdir(self.tmp_dir):
+ os.makedirs(self.tmp_dir)
hash_filename = 'uninteresting_hashes.txt'
host_hashes_file = os.path.join(self.tmp_dir, hash_filename)
hashes_file = self.flavor.device_path_join(
« 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