diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2022-08-07 06:52:08 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2022-08-08 12:14:25 -0400 |
commit | 192181c9fd0da91f6a3ff5b679b1ba1c718bdc56 (patch) | |
tree | c89b5a7b37c8509d3b1c7cc90d114a3aba37e9b9 | |
parent | d054377af1728f5feb6488d3c7992de150ca1dd8 (diff) |
[pacman]: neutralize tests requiring network access
-rw-r--r-- | libre/pacman/PKGBUILD | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libre/pacman/PKGBUILD b/libre/pacman/PKGBUILD index 09d4e129e..6e7d6c845 100644 --- a/libre/pacman/PKGBUILD +++ b/libre/pacman/PKGBUILD @@ -11,6 +11,7 @@ # parabola changes and rationale: # - adapt config files to support multiple arches # - allow pacstrap to create cross-arch chroots +# - disable tests requiring networking pkgname=pacman @@ -122,6 +123,14 @@ prepare() { -e "s|@CARCHFLAGS[@]|$myflags|g" \ -e "s|@LDFLAGS[@]|$myldflags|g" done + + # neutralize tests requiring networking + local net_check_url=https://repo.parabola.nu/check_network_status.txt + local sed_rx="s|xfail_tests = {|&\ + 'tests/sync-failover-404-with-body.py': true,\ + 'tests/upgrade-download-pkg-and-sig-with-filename.py': true,\ + 'tests/upgrade-download-pkg-and-sig-without-filename.py': true,|" + curl ${net_check_url} &> /dev/null || sed -i "${sed_rx}" test/pacman/meson.build } build() { |