This is an automated email from the ASF dual-hosted git repository.

chug pushed a commit to branch dev-protocol-adaptors-2
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/dev-protocol-adaptors-2 by 
this push:
     new 61fe9a8  DISPACH-1807: TCP self test integration with scraper
61fe9a8 is described below

commit 61fe9a8773eae07ac2e4914be56a17fbe3d22f51
Author: Chuck Rolke <c...@apache.org>
AuthorDate: Fri Nov 6 08:56:59 2020 -0500

    DISPACH-1807: TCP self test integration with scraper
    
    Add hook and instructions for merging TCP adaptor self test log
    with router logs in scraper. There is still a manual step that will
    be unnecessary in upcoming commits.
---
 tests/system_tests_tcp_adaptor.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tests/system_tests_tcp_adaptor.py 
b/tests/system_tests_tcp_adaptor.py
index 52c945a..d8019ef 100644
--- a/tests/system_tests_tcp_adaptor.py
+++ b/tests/system_tests_tcp_adaptor.py
@@ -187,6 +187,17 @@ class TcpAdaptor(TestCase):
                             print_to_console=True,
                             save_for_dump=False)
 
+        # Write a dummy log line for scraper.
+        # With this the test log can be identified and consumed in scraper.
+        #  1. Capture test log output to file 'test.log'.
+        #  2. Edit away prefix (e.g. '71: ') so each line starts with time of 
day.
+        #  3. Edit away ctest lines and fragments that have no time of day.
+        #  4. Run scraper:
+        #     'scraper -lm TCP_ADAPTOR,TCP_TEST,ECHO_SERVER,ECHO_CLIENT -f 
I*.log E*.log test.log > test.html'
+        #  5. Profit:
+        #     'firefox test.html'
+        cls.logger.log("SERVER (info) Container Name: TCP_TEST")
+
         # Create a scoreboard for the ports
         p_out = []
         for rtr in cls.router_order:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to