Bug 1380338 - Convert taskgraph unit tests to the |mach python-test| framework, r=dustin
These tests can now be run with: ./mach python-test taskcluster/taskgraph or: ./mach python-test taskcluster They can now run in parallel by passing in -j. MozReview-Commit-ID: JXeZV8B04Sf
This commit is contained in:
@@ -70,17 +70,6 @@ class MachCommands(MachCommandBase):
|
||||
and that build may further depend on various toolchains, libraries, etc.
|
||||
"""
|
||||
|
||||
@SubCommand('taskgraph', 'python-tests',
|
||||
description='Run the taskgraph unit tests')
|
||||
def taskgraph_python_tests(self, **options):
|
||||
import unittest
|
||||
import mozunit
|
||||
suite = unittest.defaultTestLoader.discover('taskgraph.test')
|
||||
runner = mozunit.MozTestRunner(verbosity=2)
|
||||
result = runner.run(suite)
|
||||
if not result.wasSuccessful():
|
||||
sys.exit(1)
|
||||
|
||||
@ShowTaskGraphSubCommand('taskgraph', 'tasks',
|
||||
description="Show all tasks in the taskgraph")
|
||||
def taskgraph_tasks(self, **options):
|
||||
|
||||
Reference in New Issue
Block a user