• Home
  • Raw
  • Download

Lines Matching refs:cache_dir

342   def GetChromeVersionFromCache(self, cache_dir):  argument
345 keys_file = os.path.join(cache_dir, CACHE_KEYS_FILE)
357 def PopulateFromCacheDir(self, cache_dir, test, suite): argument
361 with open(os.path.join(cache_dir, RESULTS_FILE), 'r') as f:
371 (self.temp_dir, os.path.join(cache_dir, AUTOTEST_TARBALL)))
379 self.chrome_version = self.GetChromeVersionFromCache(cache_dir)
394 def StoreToCacheDir(self, cache_dir, machine_manager, key_list): argument
429 if os.path.exists(cache_dir):
430 command = 'rm -rf {0}'.format(cache_dir)
433 command = 'mkdir -p {0} && '.format(os.path.dirname(cache_dir))
435 command += 'mv {0} {1}'.format(temp_dir, cache_dir)
441 cache_dir))
467 cache_dir, argument
475 result.PopulateFromCacheDir(cache_dir, test, suite)
530 def PopulateFromCacheDir(self, cache_dir, test, suite): argument
533 with open(os.path.join(cache_dir, RESULTS_FILE), 'r') as f:
539 super(TelemetryResult, self).GetChromeVersionFromCache(cache_dir)
650 cache_dir = misc.GetFilenameFromString(cache_key)
651 if self.label.cache_dir:
652 cache_home = os.path.abspath(os.path.expanduser(self.label.cache_dir))
653 cache_path = [os.path.join(cache_home, cache_dir)]
655 cache_path = [os.path.join(SCRATCH_DIR, cache_dir)]
660 cache_path.append(os.path.join(path, cache_dir))
706 cache_dir = self.GetCacheDirForWrite()
707 command = 'rm -rf %s' % (cache_dir,)
710 cache_dir = self.GetCacheDirForRead()
712 if not cache_dir:
715 if not os.path.isdir(cache_dir):
719 self._logger.LogOutput('Trying to read from cache dir: %s' % cache_dir)
721 self.machine, cache_dir, self.test_name,
733 cache_dir, keylist = self.GetCacheDirForWrite(get_keylist=True)
734 result.StoreToCacheDir(cache_dir, self.machine_manager, keylist)