die correctly if test-packages fails

This commit is contained in:
David Glasser
2014-09-10 20:19:23 -07:00
parent 1355f59df2
commit b0cc3bd155

View File

@@ -1163,6 +1163,8 @@ main.registerCommand({
var testPackages = null;
try {
var packages = getPackagesForTest(options.args);
if (typeof packages === "number")
return packages;
testPackages = packages.testPackages;
localPackages = packages.localPackages;
options.localPackageNames = packages.localPackages;