diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2018-01-28 08:27:13 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-01-28 08:27:13 +0000 |
commit | 9d62ded88317c2cb92532a74cce1d31261f7f3e7 (patch) | |
tree | ce302a2ab06b48b3a23efab706a41e55958046d5 | |
parent | a26739907836b314b940f643dda839c972ed6150 (diff) | |
parent | 82634f4ba67bdd62bfd0dc6d2e2dab63608971cf (diff) | |
download | TimeZoneData-9d62ded88317c2cb92532a74cce1d31261f7f3e7.tar.gz |
Snap for 4571561 from 82634f4ba67bdd62bfd0dc6d2e2dab63608971cf to pi-release
Change-Id: Ib52e24e7d33df4cc2769deb0e93b6589ce661401
-rw-r--r-- | testing/xts/src/com/android/timezone/xts/TimeZoneUpdateHostTest.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/testing/xts/src/com/android/timezone/xts/TimeZoneUpdateHostTest.java b/testing/xts/src/com/android/timezone/xts/TimeZoneUpdateHostTest.java index f34df62..e3300bb 100644 --- a/testing/xts/src/com/android/timezone/xts/TimeZoneUpdateHostTest.java +++ b/testing/xts/src/com/android/timezone/xts/TimeZoneUpdateHostTest.java @@ -159,7 +159,6 @@ public class TimeZoneUpdateHostTest implements IDeviceTest, IBuildReceiver { break; } // Success, meaning there was an APK that could be uninstalled. - // If there is a distro installed we need wait for the distro uninstall that should now // become staged. boolean distroIsInstalled = INSTALL_STATE_INSTALLED.equals(getCurrentInstallState()); @@ -172,6 +171,13 @@ public class TimeZoneUpdateHostTest implements IDeviceTest, IBuildReceiver { waitForStagedUninstall(); rebootDeviceAndWaitForRestart(); + } else { + // There was an apk installed, but no time zone distro was installed. It was + // probably a "bad" .apk that was rejected. The update app will request an uninstall + // anyway just to be sure, so we'll give it a chance to do that before continuing + // otherwise we could get an "operation in progress" later on when we're not + // expecting it. + Thread.sleep(10000); } } assertActiveRulesVersion(getSystemRulesVersion()); |