Skip to content

Commit

Permalink
test: switch to platform.machine
Browse files Browse the repository at this point in the history
For some reason on a bunch of my systems `platform.processor()` always
returns an empty string. `platform.machine()` consistently works on
those systems.

This closes #95.

Signed-off-by: Simon de Vlieger <[email protected]>
  • Loading branch information
supakeen committed Jan 27, 2025
1 parent 222d42d commit cfe8f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_container_manifest_generates_sbom(tmp_path, build_container):
"--distro", "centos-9",
"--with-sbom",
], stdout=subprocess.DEVNULL)
arch = platform.processor()
arch = platform.machine()
fn = f"centos-9-minimal-raw-{arch}/centos-9-minimal-raw-{arch}.image-os.spdx.json"
image_sbom_json_path = output_dir / fn
assert image_sbom_json_path.exists()
Expand Down

0 comments on commit cfe8f7c

Please sign in to comment.