Skip to content

Commit

Permalink
tools: adding dnf support
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Lavu <[email protected]>
  • Loading branch information
Dan Lavu committed Aug 7, 2023
1 parent 97a3994 commit 9a9abb9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sssd_test_framework/utils/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,20 @@ def tshark(self, args: list[Any] | None = None) -> SSHProcessResult:

return self.host.ssh.exec(["tshark", *args])

def dnf(self, args: list[Any] | None = None) -> SSHProcessResult:
"""
Execute dnf commands with given arguments.
:param args: Arguments to ``dnf``, defaults to None
:type args: list[Any] | None, optional
:return: SSH Process result
:rtype: SSHProcessResult
"""
if args is None:
args = []

return self.host.ssh.exec(["dnf", *args])

def teardown(self):
"""
Revert all changes.
Expand Down

0 comments on commit 9a9abb9

Please sign in to comment.