Skip to content

Commit

Permalink
pty
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardkaindl committed Dec 20, 2023
1 parent 54e4fad commit cc26b44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<collect>
<list>/proc/self/fd</list>
<list>/proc/sys/kernel/pty</list>
<files>/proc/self/status</files>
<directory pattern=".*ax_user_watches">/proc/sys/fs/epoll</directory>
<command label="proc_version">cat /proc/version</command>
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_load_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def test_load_plugins(bugtool, dom0_template):
assert bugtool.cap_sizes["mock"] == 0
# Assert the entries added to the bugtool.data dict:
assert bugtool.data == {
"ls -l /proc/self/fd": {
"ls -l /proc/sys/kernel/pty": {
"cap": "mock",
"cmd_args": ["ls", "-l", "/proc/self/fd"],
"cmd_args": ["ls", "-l", "/proc/sys/kernel/pty"],
"filter": None,
},
"/proc/self/status": {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def assert_mock_bugtool_plugin_output(extracted):
return # FIXME: Fix collect_data() for Python3
with open(extracted + "proc_version.out") as proc_version: # type: ignore[unreachable]
assert proc_version.read()[:14] == "Linux version "
with open(extracted + "ls-l-%proc%self%fd.out") as reboot:
with open(extracted + "ls-l-%proc%sys%kernel%pty.out") as reboot:
assert reboot.read()[:6] == "total "
with open(extracted + "proc/self/status") as status:
assert status.read()[:5] == "Name:"
Expand Down

0 comments on commit cc26b44

Please sign in to comment.