- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
function checkAnswer(lastId, connectionString, success, unsuccess, installationNumber) {
var result;
for(var i=0;i<3*15/*15min*/;i++) {
Delay(periodCheckingComponentsInstalled, "Waiting components to be installed");
result = getDataFromDB(connectionString, lastId);
var k = [];
for(var i=0;i<success.length; i++) {
k.push(false);
}
for(var i=0;i<success.length;i++) {
if ((success[i] == "RemoteSuccess") || (success[i] == "RemoteUnSuccess")) {
k[i] = true;
break;
}
else {
for(var j=0;j<result.length ; j++) {
if (result[j].length > 40) {
k[i] = includeArray(result, success[i]);//40 symb
if (includeArray(result, unsuccess[i])) Log.Error("error while installing, number installation = " + installationNumber);
}
}
}
}
var bool = true;
for (var i=0;i<success.length; i++) {
bool = bool&&k[i];
}
if (bool) return true; else continue;
return false;
}
}
Остался скрипт от тестировщика. Блядь, и такого там с мегабайт.