Ignore any non gerrit lines 39/76539/5
authorSam Hague <shague@redhat.com>
Mon, 1 Oct 2018 17:04:59 +0000 (13:04 -0400)
committerSam Hague <shague@redhat.com>
Mon, 1 Oct 2018 20:13:37 +0000 (20:13 +0000)
commit605ceec45e75d1e008131e1fec051e29ef71cc50
treee2f4ccfb39e8a2b989fb37bdd1f34a22a4bae6fb
parent4a40e16a42945cbed78c5d26541ab2f96fb2fd34
Ignore any non gerrit lines

The latest ssh infra changes are now returning output like:
"Warning: Permanently added the RSA host key for IP address" to the
output and that is being parsed incorrectly. So drop any lines that
are not gerrit lines. Those lines will have "grantedOn" in them.

Also added a testcase to test the condition.

Change-Id: Iefc109f28eed491aad9fac7bd9093685cba2348d
Signed-off-by: Sam Hague <shague@redhat.com>
tools/distchanges/gerritquery.py
tools/distchanges/logg.py [new file with mode: 0644]
tools/distchanges/tests/test_gerritquery.py [new file with mode: 0644]