From cfe8f7c28932fbc276cb5985ce1a427b1f7b5bab Mon Sep 17 00:00:00 2001 From: Simon de Vlieger Date: Sat, 25 Jan 2025 12:40:35 +0100 Subject: [PATCH] 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 --- test/test_container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_container.py b/test/test_container.py index 96da99ca..313b9739 100644 --- a/test/test_container.py +++ b/test/test_container.py @@ -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()