diff --git a/toolkit/mozapps/update/tests/unit_aus_update/head_update.js b/toolkit/mozapps/update/tests/unit_aus_update/head_update.js index 226ea86c988..e1ba7ee866e 100644 --- a/toolkit/mozapps/update/tests/unit_aus_update/head_update.js +++ b/toolkit/mozapps/update/tests/unit_aus_update/head_update.js @@ -1765,6 +1765,9 @@ function checkUpdateLogContents(aCompareLogFile) { updateLogContents = updateLogContents.replace(/\n+/g, "\n"); // Remove leading and trailing newlines updateLogContents = updateLogContents.replace(/^\n|\n$/g, ""); + // The update log when running the service tests sometimes starts with data + // from the previous launch of the updater. + updateLogContents = updateLogContents.replace(/^calling QuitProgressUI\n[^\n]*\nUPDATE TYPE/g, "UPDATE TYPE"); let compareLog = getTestDirFile(aCompareLogFile); let compareLogContents = readFileBytes(compareLog);