mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-05 20:36:10 +02:00
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:
parent
fb9d3cdb81
commit
2c92a0a0eb
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user