Skip to content

Commit c0c5001

Browse files
ivanpovazanLoopedBard3matouskozak
authored
[android] Accept both ActivityManager and ActivityTaskManager for reporting TTID and TTFD (#4780)
* Accept both ActivityManager and ActivityTaskManager as reports for TTID and TTFD * Update src/scenarios/shared/runner.py Split off the rest of the grep after the ActivityManager or ActivityTaskManager to another grep so that both will be sure to match on ": Displayed...". Previous logic was match 'ActivityManager' or '|ActivityTaskManager: Displayed ' which is incorrect. Co-authored-by: Matous Kozak <[email protected]> --------- Co-authored-by: Parker Bibus <[email protected]> Co-authored-by: Matous Kozak <[email protected]>
1 parent fc2724c commit c0c5001

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scenarios/shared/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,12 +535,12 @@ def run(self):
535535
# Create the fullydrawn command
536536
fullyDrawnRetrieveCmd = xharness_adb() + [
537537
'shell',
538-
f"logcat -d | grep 'ActivityTaskManager: Fully drawn {self.packagename}'"
538+
f"logcat -d | grep -E 'ActivityManager|ActivityTaskManager' | grep ': Fully drawn {self.packagename}'"
539539
]
540540

541541
basicStartupRetrieveCmd = xharness_adb() + [
542542
'shell',
543-
f"logcat -d | grep 'ActivityTaskManager: Displayed {androidHelper.activityname}'"
543+
f"logcat -d | grep -E 'ActivityManager|ActivityTaskManager' | grep ': Displayed {androidHelper.activityname}'"
544544
]
545545

546546
clearLogsCmd = xharness_adb() + [

0 commit comments

Comments
 (0)