tester: Adapt to Python3 dictview

Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
IWASE Yusuke 2015-10-09 16:51:23 +09:00 committed by FUJITA Tomonori
parent fb9d3cdb81
commit 2c92a0a0eb

View File

@ -419,7 +419,7 @@ class OfTester(app_manager.RyuApp):
test_report = {}
self.logger.info('--- Test start ---')
test_keys = tests.keys()
test_keys = list(tests.keys())
test_keys.sort()
for file_name in test_keys:
report = self._test_file_execute(tests[file_name])
@ -561,7 +561,7 @@ class OfTester(app_manager.RyuApp):
def _output_test_report(self, report):
self.logger.info('%s--- Test report ---', os.linesep)
error_count = 0
for result_type in sorted(report.keys()):
for result_type in sorted(list(report.keys())):
test_descriptions = report[result_type]
if result_type == TEST_OK:
continue