commit | 2430e2978b95ff364c304e0aeeeaeec6df929146 | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Tue Apr 19 15:02:41 2016 -0700 |
committer | Tianjie Xu <xunchang@google.com> | Wed Apr 20 14:50:35 2016 -0700 |
tree | 0a0fced9ceaaebcf03e36c30548e93ac2992291e | |
parent | e8d0ecccf7e54e73418cac94b0b136bfed94d51a [diff] |
Fix matches_locale function matches_locale was expecting input locale string to have at most one underscore; as a result "zh_CN_#Hans" ignores "zh_CN" and matches into "zh". Fix the match function and add unit tests. Bug: 27837319 Change-Id: I4e8a66f91cae6ac2a46b6bf21f670d5ea564c7c8
mm -j && m ramdisk-nodeps && m recoveryimage-nodeps # To boot into the new recovery image # without flashing the recovery partition: adb reboot bootloader fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
# After setting up environment and lunch. mmma -j bootable/recovery # Running the tests on device. adb root adb sync data # 32-bit device adb shell /data/nativetest/recovery_unit_test/recovery_unit_test adb shell /data/nativetest/recovery_component_test/recovery_component_test # Or 64-bit device adb shell /data/nativetest64/recovery_unit_test/recovery_unit_test adb shell /data/nativetest64/recovery_component_test/recovery_component_test