tests: Remove useless test list from run-tests.py help
There's no point in printing out a 3k+ long list, just remove it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
3691db26f7
commit
b513ed429d
1 changed files with 10 additions and 2 deletions
|
@ -243,8 +243,7 @@ def main():
|
|||
parser.add_argument('-i', action='store_true', dest='stdin_ctrl',
|
||||
help='stdin-controlled test case execution')
|
||||
parser.add_argument('tests', metavar='<test>', nargs='*', type=str,
|
||||
help='tests to run (only valid without -f)',
|
||||
choices=[[]] + test_names)
|
||||
help='tests to run (only valid without -f)')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
@ -252,6 +251,15 @@ def main():
|
|||
print('Invalid arguments - only one of (test, test modules, modules file) can be given.')
|
||||
sys.exit(2)
|
||||
|
||||
if args.tests:
|
||||
fail = False
|
||||
for t in args.tests:
|
||||
if not t in test_names:
|
||||
print('Invalid arguments - test "%s" not known' % t)
|
||||
fail = True
|
||||
if fail:
|
||||
sys.exit(2)
|
||||
|
||||
if args.database:
|
||||
if not sqlite3_imported:
|
||||
print("No sqlite3 module found")
|
||||
|
|
Loading…
Reference in a new issue