From b39332d760010bfc6172ec45279bf8f6be49f1ce Mon Sep 17 00:00:00 2001 From: Attila Fazekas Date: Mon, 1 Aug 2016 14:05:47 +0200 Subject: [PATCH] Allow to specifiy black/white list at the same time Allow to specify both black list and white list file at the same time. Change-Id: Id112c01f6fad0bd568bd9178ee30338b885f1223 --- os_testr/ostestr.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/os_testr/ostestr.py b/os_testr/ostestr.py index 0c73627..24c9981 100755 --- a/os_testr/ostestr.py +++ b/os_testr/ostestr.py @@ -37,14 +37,13 @@ def get_parser(args): description='Tool to run openstack tests') parser.add_argument('--version', action='version', version='%s' % __version__) - list_files = parser.add_mutually_exclusive_group() - list_files.add_argument('--blacklist_file', '-b', - help='Path to a blacklist file, this file ' - 'contains a separate regex exclude on each ' - 'newline') - list_files.add_argument('--whitelist_file', '-w', - help='Path to a whitelist file, this file ' - 'contains a separate regex on each newline.') + parser.add_argument('--blacklist_file', '-b', + help='Path to a blacklist file, this file ' + 'contains a separate regex exclude on each ' + 'newline') + parser.add_argument('--whitelist_file', '-w', + help='Path to a whitelist file, this file ' + 'contains a separate regex on each newline.') group = parser.add_mutually_exclusive_group() group.add_argument('--regex', '-r', help='A normal testr selection regex. If a blacklist '