diff options
author | 2017-02-17 21:52:02 +0800 | |
---|---|---|
committer | 2017-02-19 00:28:47 +0800 | |
commit | f15edb752f72b8f0f23d44f6fd5b6923140ca187 (patch) | |
tree | 451b9b5b1cf74745740fbc6187c792befcf35597 /tests/unit/loader/plan_test.py | |
parent | fc95a8868d1c4168cb900bc7e2004b557f757bf9 (diff) |
Fix error in loader test
Change-Id: Idac7d0ec77941974a5f93108fd5f450eef05a5ad
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'tests/unit/loader/plan_test.py')
-rw-r--r-- | tests/unit/loader/plan_test.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/loader/plan_test.py b/tests/unit/loader/plan_test.py index 4872b4cd..d9869cb6 100644 --- a/tests/unit/loader/plan_test.py +++ b/tests/unit/loader/plan_test.py @@ -29,11 +29,10 @@ def test_init(plan): def test_list_all(benchmarks_root): - plan_list = Plan.list_all(paths=[benchmarks_root]) - assert len(list(plan_list)) is 1 + plan_list = list(Plan.list_all(paths=[benchmarks_root])) + assert len(plan_list) is 1 for desc in plan_list: assert PlanProp.NAME in desc - assert PlanProp.CONTENT in desc assert PlanProp.ABSPATH in desc assert PlanProp.ABSPATH is not None |