Move sanity checks to stylo tests

This commit is contained in:
Manish Goregaokar 2016-09-20 20:38:16 +05:30
parent c615a0dabc
commit 1d497828a7
No known key found for this signature in database
GPG key ID: 3BBF4D3E2EF79F98
7 changed files with 13 additions and 12 deletions

View file

@ -208,6 +208,8 @@ class MachCommands(CommandBase):
if not packages:
packages = set(os.listdir(path.join(self.context.topdir, "tests", "unit")))
packages.remove('stylo')
args = ["cargo", "test"]
for crate in packages:
args += ["-p", "%s_tests" % crate]
@ -235,10 +237,7 @@ class MachCommands(CommandBase):
@Command('test-stylo',
description='Run stylo unit tests',
category='testing')
def test_unit(self, test_name=None, package=None):
if test_name is None:
test_name = []
def test_stylo(self):
self.set_use_stable_rust()
self.ensure_bootstrapped()