Skip to content

Commit

Permalink
add test for reposync which may cause an infinite loop
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Kurth <[email protected]>
  • Loading branch information
oliverkurth committed Dec 6, 2024
1 parent fd6f587 commit 260b66f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pytests/tests/test_reposync.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,3 +432,18 @@ def test_reposync_newest(utils):
assert mulversion_pkgname_found

shutil.rmtree(synced_dir)


# reposync with --newest-only option caused an infinite loop
def test_reposync_newest_multiplerepos(utils):
reponame = "photon-srpms"
workdir = WORKDIR
utils.makedirs(workdir)

ret = utils.run(['tdnf',
'--enablerepo={}'.format(reponame),
'--newest-only',
'--urls',
'reposync'],
cwd=workdir)
assert ret['retval'] == 0

0 comments on commit 260b66f

Please sign in to comment.