mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Bug 1222603 - talos --print-tests and --print-suites are broken. r=wlach
--HG-- extra : commitid : LgnCEUjk91 extra : rebase_source : 4a98e465a1aaf6bb350642e822ff9c4c464400bd
This commit is contained in:
parent
334376c936
commit
6ecfd96975
@ -5,6 +5,7 @@
|
||||
import argparse
|
||||
import os
|
||||
|
||||
|
||||
class _StopAction(argparse.Action):
|
||||
def __init__(self, option_strings, dest=argparse.SUPPRESS,
|
||||
default=argparse.SUPPRESS, help=None):
|
||||
@ -18,6 +19,7 @@ class _StopAction(argparse.Action):
|
||||
|
||||
class _ListTests(_StopAction):
|
||||
def __call__(self, parser, namespace, values, option_string=None):
|
||||
from talos import test
|
||||
print 'Available tests:'
|
||||
print '================\n'
|
||||
test_class_names = [
|
||||
@ -35,6 +37,7 @@ class _ListTests(_StopAction):
|
||||
|
||||
class _ListSuite(_StopAction):
|
||||
def __call__(self, parser, namespace, values, option_string=None):
|
||||
from talos.config import suites_conf
|
||||
print 'Available suites:'
|
||||
for name in suites_conf():
|
||||
print ' ', name
|
||||
|
Loading…
Reference in New Issue
Block a user