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:
Julien Pagès 2015-11-06 22:50:24 +01:00
parent 334376c936
commit 6ecfd96975

View File

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