Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 10460467 authored by Sarp Misoglu's avatar Sarp Misoglu
Browse files

Pass agent logs to monitor after package B&R

In this change B&R tasks ask for logs from each BackupAgent after it is
backed up or restored. These logs are then immediately passed on to the
BackupManagerMonitor.

Bug: 252760247
Change-Id: Iaf43ce61e98bb4b42c05c18a46031a06d41abb12
Test: $ atest BackupFrameworksServicesRoboTests:KeyValueBackupTaskTest
  $ atest BackupManagerMonitorUtilsTest
  Unfortunately, the other classes are not unit testable.
  For manual testing, I implemented some fake loggers for various
  BackupAgents, passed in a fake BackupManagerMonitor, ran B&R with the
  following commands, and observed that the monitor received the logs.
  1. $ adb shell bmgr backupnow --all
  2. $ adb shell bmgr restore ... (for one KV and one FullBackup package)
parent f9ca7a2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment