From 596010968e737d1469a2bbd68497f1ad0d9134b0 Mon Sep 17 00:00:00 2001 From: Jakub Warmuz Date: Fri, 26 Jun 2015 06:50:52 +0000 Subject: [PATCH] Pass SERVER to letsencrypt integration test, fix review comments. --- test/amqp-integration-test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/amqp-integration-test.py b/test/amqp-integration-test.py index 07c302dbe..a3562de52 100644 --- a/test/amqp-integration-test.py +++ b/test/amqp-integration-test.py @@ -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()