Skip to content

Commit

Permalink
Fix ci tests on macos
Browse files Browse the repository at this point in the history
Signed-off-by: Henri Rosten <[email protected]>
  • Loading branch information
henrirosten committed Jan 9, 2025
1 parent 3c88e79 commit b285725
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/compare_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,13 @@ def compare_dependencies(df_sbom, df_graph, sbom_type, graph_type):
passed = False
LOG.fatal("Dependencies only in sbom:")
for dep in sorted(deps_only_in_sbom):
print(f" {dep}")
LOG.fatal(" %s", dep)

if deps_only_in_graph:
passed = False
LOG.fatal("Dependencies only in graph:")
for dep in sorted(deps_only_in_graph):
print(f" {dep}")
LOG.fatal(" %s", dep)

return passed

Expand Down
4 changes: 4 additions & 0 deletions tests/test_sbomnix.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ def test_sbomnix_depth():
[
SBOMNIX,
TEST_NIX_RESULT,
"--buildtime",
"--csv",
out_path_csv_1.as_posix(),
"--depth=2",
]
)
assert out_path_csv_1.exists()
Expand All @@ -169,6 +171,7 @@ def test_sbomnix_depth():
[
SBOMNIX,
TEST_NIX_RESULT,
"--buildtime",
"--csv",
out_path_csv_2.as_posix(),
"--depth=1",
Expand Down Expand Up @@ -303,6 +306,7 @@ def test_compare_deps_runtime():


@pytest.mark.slow
@pytest.mark.skip_in_ci
def test_compare_deps_buildtime():
"""Compare nixgraph vs sbom buildtime dependencies"""
graph_csv_out = TEST_WORK_DIR / "graph.csv"
Expand Down

0 comments on commit b285725

Please sign in to comment.