Skip to content

Commit

Permalink
Bail out of test if unsupported distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
jsf9k committed Apr 24, 2024
1 parent f1a8e82 commit 7abf835
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions molecule/default/tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def test_cert_files(host, file_name):
path = "/etc/pki/ca-trust/source/anchors/"
elif distribution in ["debian", "kali", "ubuntu"]:
path = "/usr/local/share/ca-certificates/"
else:
assert False, f"Unsupported distribution {distribution}"

f = host.file(path + file_name)
assert f.exists
assert f.is_file
Expand Down

0 comments on commit 7abf835

Please sign in to comment.