summaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-02-05 20:06:37 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-02-05 23:37:12 +0800
commit9d78055ecd2d717a9260ca002aacf672d5cc2933 (patch)
tree5a2b803ba30b40fe55fc57d85a0c311b9720d68c /tests/unit
parent1265e8159cbce2cae0d19a3c721ad7a5087fd432 (diff)
Fix bug that metric test is not collected
Change-Id: I2e05891a89745712274757ba9af928b03fb5edf6 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/loader/metric_test.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/loader/metric_test.py b/tests/unit/loader/metric_test.py
index 91d0dd2c..26f144af 100644
--- a/tests/unit/loader/metric_test.py
+++ b/tests/unit/loader/metric_test.py
@@ -27,8 +27,8 @@ def init_test(metric_spec):
in str(excinfo.value)
-def list_all_test():
- metric_list = MetricSpec.list_all()
+def list_all_test(benchmarks_root):
+ metric_list = MetricSpec.list_all(paths=[benchmarks_root])
assert len(list(metric_list)) is 6
for desc in metric_list:
assert BaseProp.NAME in desc
@@ -37,8 +37,8 @@ def list_all_test():
assert BaseProp.ABSPATH is not None
-def content_test(metric):
- content = metric.content
+def content_test(metric_spec):
+ content = metric_spec.content
assert BaseProp.NAME in content
assert BaseProp.DESCRIPTION in content
assert BaseProp.WORKLOADS in content