node tests: Report coverage url correctly.

This small patch accounts for our new
droplets dropping "zulipdev.org" from
the host name.
This commit is contained in:
Steve Howell 2020-04-24 09:54:55 +00:00 committed by showell
parent ce6c57b714
commit cc1c517264
1 changed files with 4 additions and 2 deletions

View File

@ -189,8 +189,10 @@ def get_dev_host() -> str:
user_id = os.getuid()
user_name = pwd.getpwuid(user_id).pw_name
if user_name == "zulipdev":
# For our droplets, we use the external hostname by default.
return os.uname()[1].lower() + ":9991"
hostname = os.uname()[1].lower()
if '.zulipdev.org' not in hostname:
hostname += '.zulipdev.org'
return hostname + ':9991'
else:
# For local development environments, we use localhost by
# default, via the "zulipdev.com" hostname.