Skip to content

Commit

Permalink
actions.py: workaround due to test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
panlinux committed Dec 31, 2023
1 parent 0c96cb6 commit 912b1ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions uaclient/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ def collect_logs(cfg: config.UAConfig, output_dir: str):
kernel_logs, _ = system.subp(
["journalctl", "-b", "-k", "--since=1 day ago"]
)
# XXX due to test_cli_collect_logs.TestActionCollectLogs.test_collect_locs
# mocking subp to always return (None,None)
if kernel_logs == None:
kernel_logs = ""
# filter out only what interests us
apparmor_logs = []
for kernel_line in kernel_logs.split("\n"):
Expand Down

0 comments on commit 912b1ee

Please sign in to comment.