mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
d7877250d0
commit
9db506f3e5
@ -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"].
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user