Browse Source

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
changes/37/700237/2
Matt Riedemann 1 year ago
parent
commit
2cd8f2907f
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      roles/test-matrix/library/test_matrix.py

+ 5
- 0
roles/test-matrix/library/test_matrix.py View File

@ -141,6 +141,9 @@ of environmental feature definitions and flags.
dest='ansible',
help="Behave as python CLI",
action='store_false')
parser.add_argument('-v', '--verbose',
default=False, action='store_true',
help='Log verbose output')
parser.set_defaults(ansible=True)
return parser.parse_args()
@ -149,6 +152,8 @@ def main():
global GRID
global ALLOWED_BRANCHES
opts = get_opts()
if opts.verbose:
LOG.setLevel(logging.DEBUG)
if opts.ansible:
ansible_module = get_ansible_module()
features = ansible_module.params['features']


Loading…
Cancel
Save