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:
Andrew Halberstadt
2017-07-12 10:47:14 -04:00
parent b1b7a75372
commit 98b4a9d6fe
19 changed files with 97 additions and 47 deletions

View File

@@ -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):