Skip to content

Commit

Permalink
test/t/lib-funcs-integ: Add --disable-download-timeout pacman flag
Browse files Browse the repository at this point in the history
Try to improve CI reliability.
  • Loading branch information
CyberShadow committed Dec 11, 2023
1 parent 94401f6 commit e7f85b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/t/lib-funcs-integ.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ function TestInit() {
yay_opts+=(--noconfirm)
paru_opts+=(--noconfirm)

# Improve CI reliability when downloading from archive.archlinux.org
pacman_opts+=(--disable-download-timeout)

# pacaur insists that this is set, even if it will never invoke it
export EDITOR=/bin/cat

Expand Down Expand Up @@ -348,7 +351,7 @@ function TestInstallPackage() {

function TestExpectPacManLog() {
command sudo touch /var/log/pacman.log
diff -u /dev/stdin <( sed -n 's/^.*\[PACMAN\] Running '\''pacman \(--noconfirm \)\?\(.*\)'\''$/\2/p' /var/log/pacman.log )
diff -u /dev/stdin <( sed -n 's/^.*\[PACMAN\] Running '\''pacman \(--noconfirm \)\?\(--disable-download-timeout \)\?\(.*\)'\''$/\3/p' /var/log/pacman.log )
}

###############################################################################
Expand Down

0 comments on commit e7f85b5

Please sign in to comment.