Skip to content

Commit

Permalink
run-tests: create docker objects outside of if so they are bound (B…
Browse files Browse the repository at this point in the history
…ug 1813065) r=zeid

Depends on D168108

Differential Revision: https://phabricator.services.mozilla.com/D168109

--HG--
extra : moz-landing-system : lando
  • Loading branch information
cgsheeh committed Jan 30, 2023
1 parent 50300d5 commit d1ce3b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ if __name__ == "__main__":

# Enable tests to interact with our Docker controlling script.
have_docker = False
docker_state = os.path.join(HERE, ".dockerstate")
docker_url, docker_tls = vctdocker.params_from_env(os.environ)
docker = vctdocker.Docker(docker_url, tls=docker_tls)
if not options.no_docker:
docker_state = os.path.join(HERE, ".dockerstate")
docker_url, docker_tls = vctdocker.params_from_env(os.environ)
docker = vctdocker.Docker(docker_url, tls=docker_tls)
hgcluster = vcthgmo.HgCluster(docker)

if docker.is_alive():
Expand Down

0 comments on commit d1ce3b9

Please sign in to comment.