Fix test-packages * if some packages lack tests

Fixes #3334.

This was an intentional but poorly thought through change in
1.0.2 (1a9536baa).
This commit is contained in:
David Glasser
2014-12-20 20:38:25 -08:00
parent 9d4175b2b4
commit 00a7da3dd0

View File

@@ -1470,10 +1470,11 @@ var getTestPackageNames = function (projectContext, packageNames) {
}
if (version.testName) {
testPackages.push(version.testName);
} else {
// This case only happens when explicitly asked for.
buildmessage.error("Package has no tests");
}
// It is not an error to mention a package by directory that is a
// package but has no tests; this means you can run `meteor
// test-packages $APP/packages/*` without having to worry about the
// packages that don't have tests.
}
});
});