Skip to content

Commit

Permalink
format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yukirora committed Jul 13, 2021
1 parent 16e7c17 commit 7d9be64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ def _process_raw_result(self, cmd_idx, raw_output):
Return:
True if the raw output string is valid and result can be extracted.
"""
ib_command = self._args.commands[cmd_idx]
self._result.add_raw_data('raw_output_' + str(cmd_idx) + '_IB' + str(self._args.ib_index), raw_output)

valid = False
Expand All @@ -193,9 +192,7 @@ def _process_raw_result(self, cmd_idx, raw_output):
if self.__message_sizes[i] in line:
values = list(filter(None, line.split(' ')))
avg_bw = float(values[-2])
metric = 'IB_Avg_{}'.format(
str(self._args.ib_index)
)
metric = 'IB_Avg_{}'.format(str(self._args.ib_index))
if metric not in metric_set:
metric_set.add(metric)
self._result.add_result(metric, avg_bw)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ def test_ib_loopback_performance(self):
message_sizes = [benchmark._args.size]
for ib_command in benchmark._args.commands:
for size in message_sizes:
metric = 'IB_Avg_{}'.format(
str(benchmark._args.ib_index)
)
metric = 'IB_Avg_{}'.format(str(benchmark._args.ib_index))
metric_list.append(metric)
for metric in metric_list:
assert (metric in benchmark.result)
Expand Down

0 comments on commit 7d9be64

Please sign in to comment.