From ba03e2f6d36ea96089738965b33911c4a6e30151 Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Fri, 8 May 2020 20:27:47 -0700 Subject: Make benchmark_cold_compile.py work even if it can't fetch (#1579) --- benchmark/scripts/benchmark_cold_compile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'benchmark/scripts') 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) -- cgit v1.2.3