Pass SERVER to letsencrypt integration test, fix review comments.

This commit is contained in:
Jakub Warmuz 2015-06-26 06:50:52 +00:00
parent f8b3750c02
commit 596010968e
No known key found for this signature in database
GPG Key ID: 2A7BAD3A489B52EA
1 changed files with 5 additions and 4 deletions

View File

@ -64,15 +64,16 @@ def run_node_test():
return 0
def run_client_tests():
assert "LETSENCRYPT_PATH" in os.environ
root = os.environ["LETSENCRYPT_PATH"]
root = os.environ.get("LETSENCRYPT_PATH")
assert root is not None, (
"Please set LETSENCRYPT_PATH env variable to point at "
"initialized (virtualenv) client repo root")
os.environ['SERVER'] = 'http://localhost:4300/acme/new-reg'
test_script_path = os.path.join(root, 'tests', 'boulder-integration.sh')
if subprocess.Popen(test_script_path, shell=True, cwd=root).wait() != 0:
die()
try:
start()
run_node_test()