summaryrefslogtreecommitdiffstats
path: root/dovetail/tests
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2018-03-01 20:03:59 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2018-03-06 09:16:43 +0800
commitb25c1371f82911ea26b8c893b6612bb5ae0c8c19 (patch)
tree91190d32b9bb723670214b4d91e0bb95cccf5382 /dovetail/tests
parentc308b9a718b8b4fc5e781f8d2a6dbe714e381834 (diff)
leverage data_files to eliminate so many hardcoded abs_path_seekings
1. mv conf/ userconfig/ compliance/ patch to etc/ 2. after installation etc/ will be put under /etc/dovetail 3. leveraging /etc/dovetail in coding Change-Id: Icf9cb00ff7fc7cf35755f60d3e258b23e2c70839 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'dovetail/tests')
-rw-r--r--dovetail/tests/unit/test_parser.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/dovetail/tests/unit/test_parser.py b/dovetail/tests/unit/test_parser.py
index 7047d5ce..5cc3fe9f 100644
--- a/dovetail/tests/unit/test_parser.py
+++ b/dovetail/tests/unit/test_parser.py
@@ -28,7 +28,10 @@ class TestParser(unittest.TestCase):
def setUp(self):
"""Test case setup"""
- dt_cfg.load_config_files()
+ conf_path = os.path.join(self.test_path,
+ os.pardir, os.pardir, os.pardir,
+ 'etc/conf')
+ dt_cfg.load_config_files(conf_path)
logging.disable(logging.CRITICAL)
def test_parser_cmd(self, mock_logger):