diff options
| author | Jack Koenig | 2020-05-08 20:27:47 -0700 |
|---|---|---|
| committer | GitHub | 2020-05-09 03:27:47 +0000 |
| commit | ba03e2f6d36ea96089738965b33911c4a6e30151 (patch) | |
| tree | bcf2b8365f9708d3af351dbb9a7c55b10b6d3680 /benchmark | |
| parent | 72c48bbf9f6b3a0458f793bca6bff739917b8231 (diff) | |
Make benchmark_cold_compile.py work even if it can't fetch (#1579)
Diffstat (limited to 'benchmark')
| -rwxr-xr-x | benchmark/scripts/benchmark_cold_compile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmark/scripts/benchmark_cold_compile.py b/benchmark/scripts/benchmark_cold_compile.py index bb682b03..aa452d83 100755 --- a/benchmark/scripts/benchmark_cold_compile.py +++ b/benchmark/scripts/benchmark_cold_compile.py @@ -94,7 +94,8 @@ def parseargs(): def get_version_hashes(versions): res = subprocess.run(['git', '-C', firrtl_repo, 'fetch']) - assert res.returncode == 0, '"{}" must be an existing repo!'.format(firrtl_repo) + if res.returncode != 0: + print("Warning, unable to git fetch in {}! May cause errors finding commits.".format(firrtl_repo)) hashes = OrderedDict() for version in versions : res = subprocess.run(['git', '-C', firrtl_repo, 'rev-parse', '--short', version], stdout=subprocess.PIPE) |
