Skip to content

Commit

Permalink
reposync: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverkurth committed May 28, 2021
1 parent 2770ae9 commit 2aad58f
Show file tree
Hide file tree
Showing 3 changed files with 409 additions and 1 deletion.
1 change: 1 addition & 0 deletions pytests/repo/setup-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ PUBLISH_PATH=${TEST_REPO_DIR}/photon-test
mkdir -p ${BUILD_PATH}/BUILD \
${BUILD_PATH}/SRPMS \
${BUILD_PATH}/RPMS/x86_64 \
${BUILD_PATH}/RPMS/noarch \
${PUBLISH_PATH} \
${TEST_REPO_DIR}/yum.repos.d

Expand Down
2 changes: 1 addition & 1 deletion pytests/tests/test_downloadonly.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_install_download_only(utils):
# be in specified directory
def test_install_download_only_to_directory(utils):
pkgname = utils.config["sglversion_pkgname"]
os.makedirs(DOWNLOADDIR)
os.makedirs(DOWNLOADDIR, exist_ok=True)
ret = utils.run([ 'tdnf', 'install', '-y', '--downloadonly', '--downloaddir', DOWNLOADDIR, pkgname])
print (ret)
assert(ret['retval'] == 0)
Expand Down
Loading

0 comments on commit 2aad58f

Please sign in to comment.