mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
fixes issue #4103
This commit is contained in:
parent
25678f9c2f
commit
d8f1c10179
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
from __future__ import print_function, unicode_literals
|
from __future__ import print_function, unicode_literals
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import sys
|
||||||
import os
|
import os
|
||||||
import os.path as path
|
import os.path as path
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -27,7 +28,9 @@ class MachCommands(CommandBase):
|
||||||
def ensure_built_tests(self):
|
def ensure_built_tests(self):
|
||||||
if self.context.built_tests:
|
if self.context.built_tests:
|
||||||
return
|
return
|
||||||
Registrar.dispatch('build-tests', context=self.context)
|
returncode = Registrar.dispatch('build-tests', context=self.context)
|
||||||
|
if returncode:
|
||||||
|
sys.exit(returncode)
|
||||||
self.context.built_tests = True
|
self.context.built_tests = True
|
||||||
|
|
||||||
def find_test(self, prefix):
|
def find_test(self, prefix):
|
||||||
|
@ -180,7 +183,6 @@ class MachCommands(CommandBase):
|
||||||
def test_content(self, test_name=None):
|
def test_content(self, test_name=None):
|
||||||
self.ensure_bootstrapped()
|
self.ensure_bootstrapped()
|
||||||
self.ensure_built_tests()
|
self.ensure_built_tests()
|
||||||
|
|
||||||
test_path = path.join(self.context.topdir, "tests", "content")
|
test_path = path.join(self.context.topdir, "tests", "content")
|
||||||
test_args = ["--source-dir=%s" % test_path]
|
test_args = ["--source-dir=%s" % test_path]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue