Bug 1137946 - Disable app update verbose mochitest-chrome logging. r=spohl

This commit is contained in:
Robert Strong 2015-03-02 11:09:17 -08:00
parent 120b2310e5
commit 124082b334
2 changed files with 5 additions and 5 deletions

View File

@ -206,7 +206,7 @@ var gDisableNoUpdateAddon = false;
// Set to true to log additional information for debugging. To log additional
// information for an individual test set DEBUG_AUS_TEST to true in the test's
// onload function.
var DEBUG_AUS_TEST = true;
var DEBUG_AUS_TEST = false;
const DATA_URI_SPEC = "chrome://mochitests/content/chrome/toolkit/mozapps/update/tests/data/";
Services.scriptloader.loadSubScript(DATA_URI_SPEC + "shared.js", this);

View File

@ -304,7 +304,7 @@ function readStatusFile() {
file.append(FILE_UPDATE_STATUS);
if (!file.exists()) {
logTestInfo("update status file does not exists! Path: " + file.path);
debugDump("update status file does not exists! Path: " + file.path);
return STATE_NONE;
}
@ -508,7 +508,7 @@ function removeDirRecursive(aDir) {
}
try {
logTestInfo("attempting to remove directory. Path: " + aDir.path);
debugDump("attempting to remove directory. Path: " + aDir.path);
aDir.remove(true);
return;
} catch (e) {
@ -524,7 +524,7 @@ function removeDirRecursive(aDir) {
} else {
entry.permissions = PERMS_FILE;
try {
logTestInfo("attempting to remove file. Path: " + entry.path);
debugDump("attempting to remove file. Path: " + entry.path);
entry.remove(false);
} catch (e) {
logTestInfo("error removing file. Exception: " + e);
@ -535,7 +535,7 @@ function removeDirRecursive(aDir) {
aDir.permissions = PERMS_DIRECTORY;
try {
logTestInfo("attempting to remove directory. Path: " + aDir.path);
debugDump("attempting to remove directory. Path: " + aDir.path);
aDir.remove(true);
} catch (e) {
logTestInfo("error removing directory. Exception: " + e);