Merge "CTS: Check install status" am: a2f94e0ab5 am: d4546eeec8 am: 0bf98f515a am: 7a878fe0d5
am: af57adebab

Change-Id: I84b313087e5b58d258e67ec70348bf689c482e63
diff --git a/hostsidetests/compilation/src/android/compilation/cts/AdbRootDependentCompilationTest.java b/hostsidetests/compilation/src/android/compilation/cts/AdbRootDependentCompilationTest.java
index d371a08..a28c7b4 100644
--- a/hostsidetests/compilation/src/android/compilation/cts/AdbRootDependentCompilationTest.java
+++ b/hostsidetests/compilation/src/android/compilation/cts/AdbRootDependentCompilationTest.java
@@ -98,7 +98,8 @@
             ByteStreams.copy(inputStream, outputStream);
         }
         mDevice.uninstallPackage(APPLICATION_PACKAGE); // in case it's still installed
-        mDevice.installPackage(apkFile, false);
+        String error = mDevice.installPackage(apkFile, false);
+        assertNull("Got install error: " + error, error);
 
         // Write the text profile to a temporary file so that we can run profman on it to create a
         // real profile.