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 10, 2023
1 parent 247cb00 commit 92bb395
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions 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
2 changes: 1 addition & 1 deletion test/t/lib-funcs-mock.bash
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,5 @@ function TestInstallPackage() {

function TestExpectPacManLog() {
touch "$test_data_dir"/pacman.log
diff -u /dev/stdin <( sed -E 's/^pacman (--noconfirm )?//g' "$test_data_dir"/pacman.log )
diff -u /dev/stdin <( sed -E 's/^pacman (--noconfirm )?(--disable-download-timeout )?//g' "$test_data_dir"/pacman.log )
}

0 comments on commit 92bb395

Please sign in to comment.