mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Moved unit tests to the end of ./mach test
This commit is contained in:
parent
465546ee08
commit
f69dfc53cb
1 changed files with 4 additions and 11 deletions
|
@ -47,7 +47,7 @@ class MachCommands(CommandBase):
|
||||||
category='testing')
|
category='testing')
|
||||||
def test(self):
|
def test(self):
|
||||||
test_start = time()
|
test_start = time()
|
||||||
for t in ["tidy", "unit", "ref", "content", "wpt"]:
|
for t in ["tidy", "ref", "content", "wpt", "unit"]:
|
||||||
Registrar.dispatch("test-%s" % t, context=self.context)
|
Registrar.dispatch("test-%s" % t, context=self.context)
|
||||||
elapsed = time() - test_start
|
elapsed = time() - test_start
|
||||||
|
|
||||||
|
@ -74,16 +74,9 @@ class MachCommands(CommandBase):
|
||||||
for component in os.listdir("components"):
|
for component in os.listdir("components"):
|
||||||
ret = ret or cargo_test(component)
|
ret = ret or cargo_test(component)
|
||||||
|
|
||||||
# XXX This is a workaround for issue #3928. For some reason, when
|
print("WARNING: test-unit has probably destroyed your servo binary "
|
||||||
# cargo test is run, ./target/servo is deleted- breaking all subsequent
|
" (see https://github.com/rust-lang/cargo/issues/961 ). You "
|
||||||
# tests if run with ./mach test (not to mention breaking ./mach run
|
" may want to rebuild now.")
|
||||||
# until you rebuild again). I would hope that there's a better solution
|
|
||||||
# to this (backing up the file before and moving it back after? some
|
|
||||||
# sort of cargo configuration?) but this is quick and easy for now.
|
|
||||||
print("Rebuilding servo...")
|
|
||||||
self.context.built_tests = False
|
|
||||||
self.ensure_built_tests()
|
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
@Command('test-ref',
|
@Command('test-ref',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue