Example #1
0
 def _restore_profile(self, profile_dir):
     """
     @param profile_dir: the backup profile's folder.
     """
     if profile_dir:
         logger.info('Restore profile from [{}].'.format(profile_dir))
         backup = BackupRestoreHelper()
         backup.set_serial(self.serial)
         backup.set_restore(True)
         backup.set_no_reboot(True)
         backup.set_skip_version_check(True)
         backup.set_profile_dir(profile_dir)
         backup.run()
Example #2
0
 def _restore_profile(self, profile_dir):
     """
     @param profile_dir: the backup profile's folder.
     """
     if profile_dir:
         logger.info('Restore profile from [{}].'.format(profile_dir))
         backup = BackupRestoreHelper()
         backup.set_serial(self.serial)
         backup.set_restore(True)
         backup.set_no_reboot(True)
         backup.set_skip_version_check(True)
         backup.set_profile_dir(profile_dir)
         backup.run()
Example #3
0
 def _backup_profile(self):
     """
     @return: backup profile's folder.
     """
     profile_dir = tempfile.mkdtemp(prefix='b2gprofile_')
     logger.debug('TEMP profile Folder: {}'.format(profile_dir))
     logger.info('Backup profile to [{}].'.format(profile_dir))
     backup = BackupRestoreHelper()
     backup.set_serial(self.serial)
     backup.set_backup(True)
     backup.set_no_reboot(True)
     backup.set_profile_dir(profile_dir)
     backup.run()
     #backup.backup_profile(local_dir=profile_dir, serial=self.serial)
     return profile_dir
Example #4
0
 def _backup_profile(self):
     """
     @return: backup profile's folder.
     """
     profile_dir = tempfile.mkdtemp(prefix='b2gprofile_')
     logger.debug('TEMP profile Folder: {}'.format(profile_dir))
     logger.info('Backup profile to [{}].'.format(profile_dir))
     backup = BackupRestoreHelper()
     backup.set_serial(self.serial)
     backup.set_backup(True)
     backup.set_no_reboot(True)
     backup.set_profile_dir(profile_dir)
     backup.run()
     #backup.backup_profile(local_dir=profile_dir, serial=self.serial)
     return profile_dir