Merge "CTS: Check install status"
am: a2f94e0ab5

Change-Id: Iafaf97b9356296787d44f3b4c0b9a65c749a23d0
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.