From 960a9e0f902f0d6e82433581465bb8cfd9b65142 Mon Sep 17 00:00:00 2001 From: Yonghong Song Date: Fri, 15 Feb 2019 16:52:19 -0800 Subject: [PATCH] enable debug output for test_usdt3.py test_usdt3.py has been flaky for a while. When the test failed, it looks like it did not catch a single event. The patch enabled debug output to print out all the trace points before attachments so we will have more context in case of failure. Also this debug output seems significantly reduced flakiness and in my fc28 I cannot reproduce the test failure with it. Signed-off-by: Yonghong Song --- tests/python/test_usdt3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/python/test_usdt3.py b/tests/python/test_usdt3.py index f7881118e338..9a40a5ae5bbe 100755 --- a/tests/python/test_usdt3.py +++ b/tests/python/test_usdt3.py @@ -105,7 +105,7 @@ def _create_file(name, text): # Run the application self.app = Popen([m_bin], env=dict(os.environ, LD_LIBRARY_PATH=self.tmp_dir)) - # os.system("tplist.py -vvv -p " + str(self.app.pid)) + os.system("../../tools/tplist.py -vvv -p " + str(self.app.pid)) def test_attach1(self): # enable USDT probe from given PID and verifier generated BPF programs