This is an automated email from the ASF dual-hosted git repository. gmurthy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/master by this push: new 25d0ab6 DISPATCH-1446 - Modified get_test_log in system_tests_qdmanage to not assume that the last log line is the AGENT log. Cast a wider net by searching for the last 20 log lines. This closes #583. 25d0ab6 is described below commit 25d0ab612c0d00b6ef7ecf15269b9a1c618ab9ee Author: Ganesh Murthy <gmur...@apache.org> AuthorDate: Wed Oct 9 12:23:10 2019 -0400 DISPATCH-1446 - Modified get_test_log in system_tests_qdmanage to not assume that the last log line is the AGENT log. Cast a wider net by searching for the last 20 log lines. This closes #583. --- tests/system_tests_qdmanage.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/system_tests_qdmanage.py b/tests/system_tests_qdmanage.py index 57932af..4f37fcb 100644 --- a/tests/system_tests_qdmanage.py +++ b/tests/system_tests_qdmanage.py @@ -230,11 +230,13 @@ class QdmanageTest(TestCase): self.assertEqual(len(out), 1) self.assertEqual(len(out['org.apache.qpid.dispatch.sslProfile']), 3) - def test_get_log(self): - log = json.loads(self.run_qdmanage("get-log limit=1"))[0] - self.assertEquals(['AGENT', 'debug'], log[0:2]) - self.assertRegexpMatches(log[2], 'get-log') + logs = json.loads(self.run_qdmanage("get-log limit=20")) + found = False + for log in logs: + if u'get-log' in log[2] and ['AGENT', 'debug'] == log[0:2]: + found = True + self.assertTrue(found) def test_get_logstats(self): query_command = 'QUERY --type=logStats' --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org