test: switch to platform.machine

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 <supakeen@redhat.com>
This commit is contained in:
Simon de Vlieger 2025-01-25 12:40:35 +01:00
parent 222d42dc1c
commit cfe8f7c289

View file

@ -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()