Skip to content

Commit

Permalink
Skip tests on CI requiring systemd.
Browse files Browse the repository at this point in the history
  • Loading branch information
rocodes committed Jan 20, 2025
1 parent 3ea5448 commit a89bd5b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_keyring.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ def is_key_in_rpmdb():

if __name__ == "__main__":
assert is_fedora()
assert is_package_installed("systemd")
assert is_package_installed("securedrop-workstation-keyring")
assert is_repo_file_installed()
assert is_key_in_etc_pki()
assert is_key_in_rpmdb()

# TODO: CI does not have systemd installed and booted with PID 1,
# so skip the test that checks that the key was imported to rpmdb
# using systemd-run
if is_package_installed("systemd"):
assert is_key_in_rpmdb()

0 comments on commit a89bd5b

Please sign in to comment.