Skip to content

Commit

Permalink
make test_checksum.py arch independent
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverkurth committed Jan 25, 2024
1 parent 0f50b6f commit 90f52ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pytests/tests/test_checksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 90f52ac

Please sign in to comment.