1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

wl/speedometer: Ensure test package is installed.

Check that the package specified for the test is installed on the
device.
This commit is contained in:
Marc Bonnici 2020-11-03 19:47:58 +00:00 committed by setrofim
parent ed925938dc
commit e3ab798f6e

View File

@ -131,6 +131,12 @@ class Speedometer(Workload):
"Device must be rooted for the speedometer workload currently"
)
if not self.target.package_is_installed(self.chrome_package):
raise WorkloadError(
"Could not find '{}' on the device. Please ensure it is installed, "
"or specify the correct package name using 'chrome_package' "
"parameter.".format(self.chrome_package))
if self.target.adb_server is not None:
raise WorkloadError(
"Workload does not support the adb_server parameter, due to the webpage "