aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2018-04-20 04:09:36 +0000
committerLinda Wang <wangwulin@huawei.com>2018-04-20 04:09:36 +0000
commit32877776e763e225ff3d1b43854de3abfe8608f9 (patch)
treece090d2c3910a052c8734566ca0f372375a79f46
parent03b09edc5991ee93677131e25c4e4ac1517edb23 (diff)
Update log config for Restapi
Change-Id: I3117489d489fe7e948c81f62ccfd04a13351780a Signed-off-by: Linda Wang <wangwulin@huawei.com>
-rw-r--r--functest/api/resources/v1/testcases.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/api/resources/v1/testcases.py b/functest/api/resources/v1/testcases.py
index 2dbf97e4d..43340625b 100644
--- a/functest/api/resources/v1/testcases.py
+++ b/functest/api/resources/v1/testcases.py
@@ -146,12 +146,12 @@ class V1Testcase(ApiResource):
""" Update the log file for each task"""
rconfig = ConfigParser.RawConfigParser()
rconfig.read(
- pkg_resources.resource_filename('functest', 'ci/logging.ini'))
+ pkg_resources.resource_filename('xtesting', 'ci/logging.ini'))
log_path = os.path.join(getattr(config.CONF, 'dir_results'),
'{}.log'.format(task_id))
rconfig.set('handler_file', 'args', '("{}",)'.format(log_path))
with open(
pkg_resources.resource_filename(
- 'functest', 'ci/logging.ini'), 'wb') as configfile:
+ 'xtesting', 'ci/logging.ini'), 'wb') as configfile:
rconfig.write(configfile)