diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-05-05 11:35:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-05-05 11:35:44 +0000 |
commit | e416229fbf11819f5377b2bd810f6fc0583fef42 (patch) | |
tree | ccbf3f4c8169e1d47b708b1ef8dfda328a7223cf | |
parent | 94807a8c352cf49df156f7f50f2a21df7ba34115 (diff) | |
parent | a91b49fca69922d2401ba2a55fa867a5385b56cc (diff) |
Merge "Replace project_name by case_name in result file name"
-rw-r--r-- | functest/core/feature.py | 2 | ||||
-rw-r--r-- | functest/tests/unit/core/test_feature.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/functest/core/feature.py b/functest/core/feature.py index ed9efc70..8563c925 100644 --- a/functest/core/feature.py +++ b/functest/core/feature.py @@ -32,7 +32,7 @@ class Feature(base.TestCase): def __init__(self, **kwargs): super(Feature, self).__init__(**kwargs) self.result_file = "{}/{}.log".format( - CONST.__getattribute__('dir_results'), self.project_name) + CONST.__getattribute__('dir_results'), self.case_name) def execute(self, **kwargs): """Execute the Python method. diff --git a/functest/tests/unit/core/test_feature.py b/functest/tests/unit/core/test_feature.py index 993da5a0..8de42ec5 100644 --- a/functest/tests/unit/core/test_feature.py +++ b/functest/tests/unit/core/test_feature.py @@ -28,7 +28,7 @@ class FeatureTestingBase(unittest.TestCase): _project_name = "bar" _repo = "dir_repo_copper" _cmd = "cd /home/opnfv/repos/foo/tests && bash run.sh && cd -" - _output_file = '/home/opnfv/functest/results/bar.log' + _output_file = '/home/opnfv/functest/results/foo.log' feature = None @mock.patch('time.time', side_effect=[1, 2]) |