Bug 423033 - mochitest should ignore non-existent files. r=waldo, a=testonly

This commit is contained in:
dolske@mozilla.com 2008-03-14 18:12:05 -07:00
parent 59b87cb822
commit 5fd8b6e96a

View File

@ -240,7 +240,7 @@ function list(requestPath, directory, recurse)
// The SimpleTest directory is hidden // The SimpleTest directory is hidden
var files = [file for (file in dirIter(dir)) var files = [file for (file in dirIter(dir))
if (file.path.indexOf("SimpleTest") == -1)]; if (file.exists() && file.path.indexOf("SimpleTest") == -1)];
// Sort files by name, so that tests can be run in a pre-defined order inside // Sort files by name, so that tests can be run in a pre-defined order inside
// a given directory (see bug 384823) // a given directory (see bug 384823)