Skip to content

Commit

Permalink
enable debug output for test_usdt3.py
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
yonghong-song committed Feb 16, 2019
1 parent cdf265f commit 960a9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/test_usdt3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 960a9e0

Please sign in to comment.