diff options
author | Caroline Tice <cmtice@google.com> | 2015-09-08 16:28:57 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-09-10 17:05:06 -0700 |
commit | 9b852cfd9a602c5f80c8e621c696b796ce5177fd (patch) | |
tree | 63addd9a3cefaaabdc72b2668226480f84016125 /crosperf/experiment_runner.py | |
parent | f63421f72bc7606ce8bfc04ce9acf25e3bf8c4c0 (diff) | |
download | toolchain-utils-9b852cfd9a602c5f80c8e621c696b796ce5177fd.tar.gz |
Store machine description info in cache and json reports.
This CL updates the cache mechanism to store the machine spec
info (the checksum string) in the cache, as well as storing the
machine information in the json reports (to go into the dashboard
archive). It also updates the json reports to always include the
full set of result fields for a test, and it verifies that the
old cache directory exists before trying to remove it.
BUG=None
TEST=Tested in my directory, with --cache_only=True, --rerun=True and
--json_report=True
Change-Id: Ib12bae4ca10141de0b972e3a7aeee83c7b59049b
Reviewed-on: https://chrome-internal-review.googlesource.com/229765
Commit-Ready: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
Reviewed-by: Han Shen <shenhan@google.com>
Diffstat (limited to 'crosperf/experiment_runner.py')
-rw-r--r-- | crosperf/experiment_runner.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crosperf/experiment_runner.py b/crosperf/experiment_runner.py index 73e9fe38..ec74fdb1 100644 --- a/crosperf/experiment_runner.py +++ b/crosperf/experiment_runner.py @@ -139,8 +139,9 @@ class ExperimentRunner(object): br.label, br.share_cache, br.benchmark.suite, br.benchmark.show_all_results, br.benchmark.run_local) cache_dir = cache._GetCacheDirForWrite() - self.l.LogOutput("Removing cache dir: %s" % cache_dir) - shutil.rmtree(cache_dir) + if os.path.exists(cache_dir): + self.l.LogOutput("Removing cache dir: %s" % cache_dir) + shutil.rmtree(cache_dir) def _Run(self, experiment): try: |