зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1378641 - add more app update test logging. r=mhowell
This commit is contained in:
Родитель
7ccc8afe84
Коммит
8f8743afac
|
@ -2647,6 +2647,7 @@ function waitForHelperExit() {
|
||||||
*/
|
*/
|
||||||
function setupUpdaterTest(aMarFile, aPostUpdateAsync,
|
function setupUpdaterTest(aMarFile, aPostUpdateAsync,
|
||||||
aPostUpdateExeRelPathPrefix = "") {
|
aPostUpdateExeRelPathPrefix = "") {
|
||||||
|
debugDump("start - updater test setup");
|
||||||
let updatesPatchDir = getUpdatesPatchDir();
|
let updatesPatchDir = getUpdatesPatchDir();
|
||||||
if (!updatesPatchDir.exists()) {
|
if (!updatesPatchDir.exists()) {
|
||||||
updatesPatchDir.create(Ci.nsIFile.DIRECTORY_TYPE, PERMS_DIRECTORY);
|
updatesPatchDir.create(Ci.nsIFile.DIRECTORY_TYPE, PERMS_DIRECTORY);
|
||||||
|
@ -2662,6 +2663,7 @@ function setupUpdaterTest(aMarFile, aPostUpdateAsync,
|
||||||
helperBin.copyToFollowingLinks(afterApplyBinDir, gPostUpdateBinFile);
|
helperBin.copyToFollowingLinks(afterApplyBinDir, gPostUpdateBinFile);
|
||||||
|
|
||||||
gTestFiles.forEach(function SUT_TF_FE(aTestFile) {
|
gTestFiles.forEach(function SUT_TF_FE(aTestFile) {
|
||||||
|
debugDump("start - setup test file: " + aTestFile.fileName);
|
||||||
if (aTestFile.originalFile || aTestFile.originalContents) {
|
if (aTestFile.originalFile || aTestFile.originalContents) {
|
||||||
let testDir = getApplyDirFile(aTestFile.relPathDir, true);
|
let testDir = getApplyDirFile(aTestFile.relPathDir, true);
|
||||||
if (!testDir.exists()) {
|
if (!testDir.exists()) {
|
||||||
|
@ -2690,11 +2692,13 @@ function setupUpdaterTest(aMarFile, aPostUpdateAsync,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
debugDump("finish - setup test file: " + aTestFile.fileName);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Add the test directory that will be updated for a successful update or left
|
// Add the test directory that will be updated for a successful update or left
|
||||||
// in the initial state for a failed update.
|
// in the initial state for a failed update.
|
||||||
gTestDirs.forEach(function SUT_TD_FE(aTestDir) {
|
gTestDirs.forEach(function SUT_TD_FE(aTestDir) {
|
||||||
|
debugDump("start - setup test directory: " + aTestDir.relPathDir);
|
||||||
let testDir = getApplyDirFile(aTestDir.relPathDir, true);
|
let testDir = getApplyDirFile(aTestDir.relPathDir, true);
|
||||||
if (!testDir.exists()) {
|
if (!testDir.exists()) {
|
||||||
testDir.create(Ci.nsIFile.DIRECTORY_TYPE, PERMS_DIRECTORY);
|
testDir.create(Ci.nsIFile.DIRECTORY_TYPE, PERMS_DIRECTORY);
|
||||||
|
@ -2726,6 +2730,7 @@ function setupUpdaterTest(aMarFile, aPostUpdateAsync,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
debugDump("finish - setup test directory: " + aTestDir.relPathDir);
|
||||||
});
|
});
|
||||||
|
|
||||||
setupActiveUpdate();
|
setupActiveUpdate();
|
||||||
|
@ -2734,6 +2739,7 @@ function setupUpdaterTest(aMarFile, aPostUpdateAsync,
|
||||||
createUpdaterINI(aPostUpdateAsync, aPostUpdateExeRelPathPrefix);
|
createUpdaterINI(aPostUpdateAsync, aPostUpdateExeRelPathPrefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debugDump("finish - updater test setup");
|
||||||
setupAppFilesAsync();
|
setupAppFilesAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче