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/qpi_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/qpi_test.py')
-rw-r--r-- | tests/unit/loader/qpi_test.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/loader/qpi_test.py b/tests/unit/loader/qpi_test.py index 3328b43a..b53030d4 100644 --- a/tests/unit/loader/qpi_test.py +++ b/tests/unit/loader/qpi_test.py @@ -30,11 +30,10 @@ def test_init(qpi_spec): def test_list_all(benchmarks_root): - qpi_spec_list = QPISpec.list_all(paths=[benchmarks_root]) - assert len(list(qpi_spec_list)) is 2 + qpi_spec_list = list(QPISpec.list_all(paths=[benchmarks_root])) + assert len(qpi_spec_list) is 2 for item in qpi_spec_list: assert SpecProp.NAME in item - assert SpecProp.CONTENT in item assert SpecProp.ABSPATH in item assert SpecProp.ABSPATH is not None |