1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 11:58:55 +00:00

Uiauto2: Fixes leftover references to .uiautoapk

This commit is contained in:
Marc Bonnici 2017-06-08 11:23:45 +01:00
parent 242cf7e33a
commit b64c615e8e
4 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ fi
# If successful move APK file to workload folder (overwrite previous)
rm -f ../$package_name
if [[ -f app/build/apk/$package_name.apk ]]; then
cp app/build/apk/$package_name.apk ../$package_name.uiautoapk
cp app/build/apk/$package_name.apk ../$package_name.apk
else
echo 'ERROR: UiAutomator apk could not be found!'
exit 9

View File

@ -49,7 +49,7 @@ class UiAutomatorWorkload(Workload):
This class should be subclassed by workloads that rely on android UiAutomator
to work. This class handles installing the UI Automator APK to the device
and invoking it to run the workload. By default, it will look for the ``*.uiautoapk`` file
and invoking it to run the workload. By default, it will look for the ``*.apk`` file
in the same directory as the .py file for the workload (this can be changed by overriding
the ``uiauto_file`` property in the subclassing workload).

View File

@ -54,7 +54,7 @@ public void runUiAutomation() throws Exception{
// Get workload apk file parameters
String workload = parameters.getString("workload");
String workloadAPKPath = parameters.getString("workdir");
String workloadName = String.format("com.arm.wlauto.uiauto.%1s.uiautoapk",workload);
String workloadName = String.format("com.arm.wlauto.uiauto.%1s.apk",workload);
String workloadAPKFile = String.format("%1s/%2s",workloadAPKPath, workloadName);
// Load the apk file