Add --verbose option to test_matrix.py
This allows getting the debug logging out of test_matrix.py from the command line which is useful when you're trying to debug what is wrong with entries in the feature test matrix. Change-Id: I49aa3d7b60f4df4f32a0a3dbef9b13a97404dbf4
This commit is contained in:
parent
f0008986a1
commit
2cd8f2907f
|
@ -141,6 +141,9 @@ of environmental feature definitions and flags.
|
||||||
dest='ansible',
|
dest='ansible',
|
||||||
help="Behave as python CLI",
|
help="Behave as python CLI",
|
||||||
action='store_false')
|
action='store_false')
|
||||||
|
parser.add_argument('-v', '--verbose',
|
||||||
|
default=False, action='store_true',
|
||||||
|
help='Log verbose output')
|
||||||
parser.set_defaults(ansible=True)
|
parser.set_defaults(ansible=True)
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
@ -149,6 +152,8 @@ def main():
|
||||||
global GRID
|
global GRID
|
||||||
global ALLOWED_BRANCHES
|
global ALLOWED_BRANCHES
|
||||||
opts = get_opts()
|
opts = get_opts()
|
||||||
|
if opts.verbose:
|
||||||
|
LOG.setLevel(logging.DEBUG)
|
||||||
if opts.ansible:
|
if opts.ansible:
|
||||||
ansible_module = get_ansible_module()
|
ansible_module = get_ansible_module()
|
||||||
features = ansible_module.params['features']
|
features = ansible_module.params['features']
|
||||||
|
|
Loading…
Reference in New Issue