Skip to content

Commit

Permalink
fix bazel_integration_test runner to allow non-release URLs
Browse files Browse the repository at this point in the history
was broken by cd5416e in such a way that it was testing the prior release and not the local code from HEAD
  • Loading branch information
alexeagle committed Oct 23, 2021
1 parent 9b765cb commit e98bc2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/bazel_integration_test/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ def modify_WORKSPACE(wksp, distro_path):
content = wksp_file.read()
# Replace the url for rules_python with our locally built one
content = re.sub(
r'url = "https://github.com/bazelbuild/rules_python/releases/download/[^"]+"',
r'url = "https://github.com/bazelbuild/rules_python/[^"]+"',
'url = "file://%s"' % r.Rlocation(distro_path),
content)
# comment out sha256 and strip_prefix if present
content = re.sub(r'sha256 = "', '#\1', content)
content = re.sub(r'strip_prefix = "', '#\1', content)
with open(wksp, 'w') as wksp_file:
wksp_file.write(content)

Expand Down

0 comments on commit e98bc2d

Please sign in to comment.