OSDN Git Service

Fix tests/runtests.sh
authorOtto Seiskari <otto.seiskari@indooratlas.com>
Fri, 12 Apr 2019 10:16:14 +0000 (13:16 +0300)
committerMichael Plass <mplass@google.com>
Fri, 26 Apr 2019 18:51:33 +0000 (18:51 +0000)
commita184a4b1da2f49084dae4c7e676bba5c219495b9
tree2a5a0c4abf1be4a51f52da31e2c2b3e05937afa3
parentce22e11274d8979228039b1bf71e2ad72a946bf8
Fix tests/runtests.sh

The location of FrameworksWifiTests.apk installed by the script
with adb seems to have changed. The path of the APK contains the
TARGET_ARCH environment variable, which is now fetched
with a similar method as in system/netd/tests/runtests.sh.

Noticed the issue with "lunch aosp_x86_64-eng". Before this fix,
the test script produced an error:

    adb: failed to stat [...]/FrameworksWifiApiTests.apk:
    No such file or directory

Test: ./frameworks/base/wifi/tests/runtests.sh

Change-Id: Id4a33ca89fa21a9a4ef791c5c1c5760e0e2badaf
Merged-In: Id4a33ca89fa21a9a4ef791c5c1c5760e0e2badaf
Signed-off-by: Otto Seiskari <otto.seiskari@indooratlas.com>
wifi/tests/runtests.sh