From a0d88b09efe0afdf8e1fa4ff46d6aa8543b44a50 Mon Sep 17 00:00:00 2001 From: Jiaying Ren Date: Fri, 26 May 2017 18:06:21 +0800 Subject: [PATCH] rgw: fix test_multi.py default config file path $ python test_multi.py --num-zonegroups=2 --num-zones 2 --gateways-per-zone 1 Traceback (most recent call last): File "test_multi.py", line 315, in init(True) File "test_multi.py", line 162, in init path = tpath('test_multi.conf') NameError: global name 'tpath' is not defined Signed-off-by: Jiaying Ren --- src/test/rgw/test_multi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/rgw/test_multi.py b/src/test/rgw/test_multi.py index e8bd5f1271224..e380acc99038e 100644 --- a/src/test/rgw/test_multi.py +++ b/src/test/rgw/test_multi.py @@ -159,7 +159,7 @@ def init(parse_args): try: path = os.environ['RGW_MULTI_TEST_CONF'] except KeyError: - path = tpath('test_multi.conf') + path = test_path + 'test_multi.conf' try: with open(path) as f: -- 2.39.5