Merge branch 'test-use-distro-pin-requests' of github.com:certbot/certbot into test-use-distro-pin-requests

This commit is contained in:
Erica Portnoy 2019-08-26 15:36:58 -07:00
commit 48144d4fcb

View file

@ -214,6 +214,9 @@ def get_certbot_version(workspace):
Find the version of the certbot available in PATH.
:return str: the certbot version
"""
workspace = os.environ.get('WORKSPACE', os.path.join(os.getcwd(), '.certbot_test_workspace'))
if not os.path.exists(workspace):
os.mkdir(workspace)
output = subprocess.check_output(['certbot', '--version'],
universal_newlines=True, stderr=subprocess.STDOUT,
cwd=workspace)