From 9de12155fdd181f98e4bf58ceac7835ff8e113c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 11 Sep 2018 11:00:10 +0200 Subject: [PATCH] fixup! runTestSuite: support multiple zserver addresses and frontends URLs This was not really backward compatible when running with old slapos, because default value was not string in this case. --- product/ERP5Type/tests/runTestSuite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5Type/tests/runTestSuite.py b/product/ERP5Type/tests/runTestSuite.py index 293ef0d74d..8c12ba2414 100644 --- a/product/ERP5Type/tests/runTestSuite.py +++ b/product/ERP5Type/tests/runTestSuite.py @@ -76,12 +76,12 @@ def main(): '--zserver_address_list', help='A list of comma seperated host:port for ZServer.\n' 'Also taken from zserver_address_list environment variable.', - default=os.getenv('zserver_address_list')) + default=os.getenv('zserver_address_list', '')) slapos_wrapper_group.add_argument( '--zserver_frontend_url_list', help='A list of comma seperated frontend URLs, one for each of zserver_address_list,' 'in the same order.\nAlso taken from zserver_frontend_url_list environment variable', - default=os.getenv('zserver_frontend_url_list')) + default=os.getenv('zserver_frontend_url_list', '')) # Parameters passed by test node testnode_group = parser.add_argument_group( -- 2.30.9