mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-10-30 14:44:09 +00:00
Removing browser launch from audio and video
For historical reasons audio and video workloads were launching the browser as part of their setup. This is no longer necessary. Not only that, since on recent devices the default Android browser is missing, this causes problems with the workloads. This commit removes the browser launch.
This commit is contained in:
@@ -109,10 +109,6 @@ class VideoWorkload(Workload):
|
||||
if self.force_dependency_push or not self.device.file_exists(on_device_video_file):
|
||||
self.logger.debug('Copying {} to device.'.format(self.host_video_file))
|
||||
self.device.push_file(self.host_video_file, on_device_video_file, timeout=120)
|
||||
self.device.execute('am start -n com.android.browser/.BrowserActivity about:blank')
|
||||
time.sleep(5)
|
||||
self.device.execute('am force-stop com.android.browser')
|
||||
time.sleep(5)
|
||||
self.device.clear_logcat()
|
||||
command = 'am start -W -S -n com.android.gallery3d/.app.MovieActivity -d {}'.format(on_device_video_file)
|
||||
self.device.execute(command)
|
||||
|
||||
Reference in New Issue
Block a user