aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra
diff options
context:
space:
mode:
authorGravatar borenet <borenet@google.com>2016-02-29 08:39:27 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-29 08:39:27 -0800
commitc0cb60d4531a410f20cd07205e7d702b1bbc75de (patch)
tree6ec3c906baddae4b6441ecab98d12784ab5be1d1 /infra
parent17597fe29dbdf03ba2842a9193705200c4db5fbb (diff)
Swarming Tests: create tmp dir if it doesn't exist
Diffstat (limited to 'infra')
-rw-r--r--infra/bots/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/infra/bots/common.py b/infra/bots/common.py
index 24d4996058..2748c54099 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(