From ef02abe36207714201d22830bc1bfdf883122830 Mon Sep 17 00:00:00 2001 From: Oliver Kurth Date: Thu, 18 Jan 2024 21:28:51 +0000 Subject: [PATCH] make test_checksum.py arch independent --- pytests/tests/test_checksum.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pytests/tests/test_checksum.py b/pytests/tests/test_checksum.py index f65cafc5..c87de581 100644 --- a/pytests/tests/test_checksum.py +++ b/pytests/tests/test_checksum.py @@ -9,9 +9,11 @@ import shutil import filecmp import glob +import platform import pytest WORKDIR = '/root/repofrompath/workdir' +ARCH = platform.machine() @pytest.fixture(scope='module', autouse=True) @@ -69,7 +71,7 @@ def test_install_package_with_incorrect_sha512_checksum(utils): reponame = 'photon-test-sha512' synced_dir = os.path.join(workdir, reponame) rpm_dir = os.path.join(synced_dir, 'RPMS') - rpm_dir = os.path.join(rpm_dir, 'x86_64') + rpm_dir = os.path.join(rpm_dir, ARCH) enable_and_create_repo(utils) copy_rpm(rpm_dir, 'tdnf-test-one', 'tdnf-test-two')