Skip to content

Commit

Permalink
fix: update logcat pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoweii committed Jun 26, 2024
1 parent 9b6d945 commit 0a1a944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IntegrationTest/devicefarm/logcat_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def test_app_end(self, path):
def get_submitted_events(path):
submitted_events = []
with open(path, 'r') as file:
pattern = re.compile(r' Send (\d+) events')
pattern = re.compile(r'^Send (\d+) events')
for line in file:
match = pattern.search(line)
if match:
Expand All @@ -209,7 +209,7 @@ def get_recorded_events(path):
log_lines = file.readlines()
events = []
first_event_pattern = re.compile(r'app_event_log:Saved event (\w+):(.*)$')
event_pattern = re.compile(r' Saved event (\w+):(.*)$')
event_pattern = re.compile(r'^Saved event (\w+):(.*)$')

current_event_name = ''

Expand Down

0 comments on commit 0a1a944

Please sign in to comment.