test: fix iperf example errors:

1. fix TypeError when running with python3
2. fix throughput chart x/y axis label error
3. make test case compatibile with iperf bin on earlier release branches
This commit is contained in:
He Yin Ling
2020-11-12 20:32:21 +08:00
committed by Chen Yudong
parent c26317ac90
commit 06c7cde836
2 changed files with 9 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ class ThroughputForConfigsReport(object):
self.sdkconfigs[config_name] = self._parse_config_file(sdkconfig_files[config_name])
if not os.path.exists(output_path):
os.makedirs(output_path)
self.sort_order = self.sdkconfigs.keys()
self.sort_order = list(self.sdkconfigs.keys())
self.sort_order.sort()
@staticmethod
@@ -162,7 +162,7 @@ class ThroughputVsRssiReport(object):
self.output_path = output_path
self.raw_data_path = os.path.join(output_path, "raw_data")
self.results = throughput_results
self.throughput_types = self.results.keys()
self.throughput_types = list(self.results.keys())
self.throughput_types.sort()
if not os.path.exists(self.raw_data_path):
os.makedirs(self.raw_data_path)