Bug 1037292 - Project Editor tests - try a second time if temporary file creation fails;r=jwalker

This commit is contained in:
Brian Grinstead 2014-08-01 07:52:44 -05:00
parent a59dd635ce
commit 4e187bc44b

View File

@ -90,7 +90,15 @@ function loadHelperScript(filePath) {
}
function addProjectEditorTabForTempDirectory(opts = {}) {
TEMP_PATH = buildTempDirectoryStructure();
try {
TEMP_PATH = buildTempDirectoryStructure();
} catch (e) {
// Bug 1037292 - The test servers sometimes are unable to
// write to the temporary directory due to locked files
// or access denied errors. Try again if this failed.
info ("Project Editor temp directory creation failed. Trying again.");
TEMP_PATH = buildTempDirectoryStructure();
}
let customOpts = {
name: "Test",
iconUrl: "chrome://browser/skin/devtools/tool-options.svg",