Bug 618977 - Specifying an invalid test-path no longer complains about no tests to run, instead just does nothing. r=gavin, a=test-only

This commit is contained in:
Joel Maher 2011-05-20 11:54:01 -04:00
parent d7877250d0
commit 9db506f3e5
2 changed files with 5 additions and 0 deletions

View File

@ -201,6 +201,8 @@
// Returns an array of browserTest objects for all the selected tests
function listTests() {
[links, singleTestPath] = getTestList();
if (!links)
return [];
// load server.js in so we can share template functions
var scriptLoader = Cc["@mozilla.org/moz/jssubscript-loader;1"].

View File

@ -133,6 +133,9 @@ function getMochitestJarListing(aBasePath, aTestPath, aDir)
else if (zReader.hasEntry(pathToCheck + "/")) {
base = pathToCheck + "/";
}
else {
return [];
}
}
var [links, count] = zList(base, zReader, basePath, true);
return [links, null];