Skip to content

Commit

Permalink
Update lsof example data
Browse files Browse the repository at this point in the history
Since we now collect inode info as well.

And the corresponding unit test, since the old test process doesn't
seem to be available in my current version of Ubuntu.
  • Loading branch information
walles committed Jul 2, 2016
1 parent e2f0aa2 commit 6b872ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Binary file modified px/lsof-test-output-linux.txt
Binary file not shown.
9 changes: 3 additions & 6 deletions px/px_ipc_map_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,8 @@ def test_get_ipc_map():
with open(os.path.join(my_dir, "lsof-test-output-linux.txt"), "r") as lsof_output:
files = px_file.lsof_to_files(lsof_output.read())

ipc_map = testutils.create_ipc_map(1997, files)
assert len(ipc_map.keys()) == 2
ipc_map = testutils.create_ipc_map(777, files)
assert len(ipc_map.keys()) == 1

peer0 = ipc_map.keys()[0]
assert len(ipc_map[peer0]) == 1

peer1 = ipc_map.keys()[1]
assert len(ipc_map[peer1]) == 1
assert len(ipc_map[peer0]) == 4

0 comments on commit 6b872ea

Please sign in to comment.