зеркало из https://github.com/mozilla/gecko-dev.git
Bug 936594 - DoCommand.InstallApp - Treat non-zero exit codes for pm install as failures, r=jmaher.
This commit is contained in:
Родитель
8636a93478
Коммит
bc61e2dfd1
|
@ -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());
|
||||
|
|
Загрузка…
Ссылка в новой задаче