1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-28 00:23:09 +00:00

test test: fiddle with excludepkgs

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-07-16 10:33:51 -07:00
parent 208fe91f9d
commit dc522e3f4a
2 changed files with 7 additions and 0 deletions

View File

@ -720,6 +720,11 @@ sub _repo_setup_updates {
}
else {
setup_repos(configs => 1);
# block the update packages in main repo dnf and mock configs
assert_script_run 'sed -i -e "s,name=,excludepkgs=`sed -e s/ /,/g /mnt/updatepkgnames.txt`\nname=,g" /etc/mock/templates/fedora*';
assert_script_run 'sed -i -e "s,name=,excludepkgs=`sed -e s/ /,/g /mnt/updatepkgnames.txt`\nname=,g" /etc/yum.repos.d/fedora*.repo';
upload_logs "/etc/mock/templates/fedora-rawhide.tpl";
upload_logs "/etc/yum.repos.d/fedora.repo";
# run an update now, except for upgrade or install tests,
# where the updated packages should have been installed
# already and we want to fail if they weren't, or CANNED

View File

@ -69,6 +69,8 @@ sub run {
assert_script_run 'git clone https://pagure.io/fedora-kickstarts.git';
assert_script_run 'cd fedora-kickstarts';
assert_script_run "git checkout ${branch}";
# exclude update packages in the main repo definition
assert_script_run 'sed -i -e "s,--name=,--excludepkgs=`sed -e s/ /,/g /mnt/updatepkgnames.txt` --name=,g" ' . $repoks;
# now add the side, tag or COPR repo to the appropriate repo ks
assert_script_run 'echo "repo --name=advisory --baseurl=file:///mnt/update_repo" >> ' . $repoks unless ($tag || $copr);
assert_script_run 'echo "repo --name=openqa-testtag --baseurl=' . get_var("UPDATE_OR_TAG_REPO") . '" >> ' . $repoks if ($tag || $copr);