Skip to content

Commit

Permalink
tests: don't enforce dnf4 installation into bootstrap
Browse files Browse the repository at this point in the history
Mock has a build-in abstraction for in-bootstrap DNF version (or YUM),
there's no need to check if DNF exists on host (this whole dropped test
code comes from the pre-bootstrap era).
  • Loading branch information
praiskup committed Jul 15, 2024
1 parent 72a5304 commit a8cf90f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions mock/integration-tests/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,7 @@ else
MOCKSRPM=$1
fi

if [ -e /usr/bin/dnf ]; then
header "pre-populating the cache (DNF)"
runcmd "$MOCKCMD --init --dnf"
header "clean up"
runcmd "$MOCKCMD --offline --clean"
else
header "pre-populating the cache (YUM)"
runcmd "$MOCKCMD --init"
fi
runcmd "$MOCKCMD --init"
header "installing dependencies for $MOCKSRPM"
runcmd "$MOCKCMD --disable-plugin=tmpfs --installdeps $MOCKSRPM"
if [ ! -e $CHROOT/usr/include/python* ]; then
Expand Down

0 comments on commit a8cf90f

Please sign in to comment.