Bug 936594 - DoCommand.InstallApp - Treat non-zero exit codes for pm install as failures, r=jmaher.

This commit is contained in:
Bob Clary 2013-12-02 22:11:29 -08:00
Родитель 8636a93478
Коммит bc61e2dfd1
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -3460,11 +3460,16 @@ private void CancelNotification()
try {
outThrd3.joinAndStopRedirect(60000);
int nRet3 = pProc.exitValue();
sRet = "\ninstallation complete [" + nRet3 + "]";
if (nRet3 == 0) {
sRet = "\ninstallation complete [0]\n";
}
else {
sRet = "\nFailure pm install [" + nRet3 + "]\n";
}
}
catch (IllegalThreadStateException itse) {
itse.printStackTrace();
sRet = "\npm install command timed out";
sRet = "\nFailure pm install command timed out\n";
}
try {
out.write(sRet.getBytes());