From e7f85b592375e50b25c324776a1e6d73d9c98490 Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Sun, 10 Dec 2023 19:13:36 +0000 Subject: [PATCH] test/t/lib-funcs-integ: Add --disable-download-timeout pacman flag Try to improve CI reliability. --- test/t/lib-funcs-integ.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/t/lib-funcs-integ.bash b/test/t/lib-funcs-integ.bash index 53a71523..230225c5 100644 --- a/test/t/lib-funcs-integ.bash +++ b/test/t/lib-funcs-integ.bash @@ -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 @@ -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 ) } ###############################################################################