Skip to content

Commit

Permalink
Ignore extra ext operations for test case
Browse files Browse the repository at this point in the history
  • Loading branch information
maddieford committed Oct 18, 2024
1 parent e5e2df3 commit c8faf68
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def parse_ops_log(ops_version: str, input_ops: List[str], start_time: str):
with open(ops_file_name, 'r') as ops_log:
# we get the last len(input_ops) from the log file and ensure they match with the input_ops
# Example of a line in the log file - `Date:2019-07-30T21:54:03Z; Operation:install; SeqNo:0`
content = ops_log.readlines()[-len(input_ops):]
content = ops_log.readlines()
for op_log in content:
data = op_log.split(DELIMITER)
date = datetime.strptime(data[0].split("Date:")[1], "%Y-%m-%dT%H:%M:%SZ")
Expand All @@ -72,6 +72,10 @@ def parse_ops_log(ops_version: str, input_ops: List[str], start_time: str):
continue

ops.append({'date': date, 'op': op, 'seq_no': seq_no})

if len(ops) == len(input_ops):
break

return ops


Expand Down

0 comments on commit c8faf68

Please sign in to comment.