]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix test_multi.py default config file path 15306/head
authorJiaying Ren <jiaying.ren@umcloud.com>
Fri, 26 May 2017 10:06:21 +0000 (18:06 +0800)
committerJiaying Ren <jiaying.ren@umcloud.com>
Sat, 27 May 2017 02:45:20 +0000 (10:45 +0800)
$ 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 <module>
      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 <jiaying.ren@umcloud.com>
src/test/rgw/test_multi.py

index e8bd5f1271224dbc48d3b8bd70bb213b7691bc76..e380acc99038e9eed4cfa7018ad9b98d15641d92 100644 (file)
@@ -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: