Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/hugo/, www-apps/hugo/files/
Date: Sat, 25 Jun 2022 02:50:34
Message-Id: 1656125421.261411be21e0625b89be16ff906e2a2102341406.sam@gentoo
1 commit: 261411be21e0625b89be16ff906e2a2102341406
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Wed Jun 8 00:19:47 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 02:50:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=261411be
7
8 www-apps/hugo: Increase test timeout
9
10 The default test page building timeout is 1 minute, that's a bit too low
11 for slower computers.
12
13 Closes: https://bugs.gentoo.org/850313
14 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 www-apps/hugo/files/hugo-0.99.1-test-timeout.patch | 25 ++++++++++++++++++++++
18 www-apps/hugo/hugo-0.99.1.ebuild | 1 +
19 2 files changed, 26 insertions(+)
20
21 diff --git a/www-apps/hugo/files/hugo-0.99.1-test-timeout.patch b/www-apps/hugo/files/hugo-0.99.1-test-timeout.patch
22 new file mode 100644
23 index 000000000000..dc0f4898fcf6
24 --- /dev/null
25 +++ b/www-apps/hugo/files/hugo-0.99.1-test-timeout.patch
26 @@ -0,0 +1,25 @@
27 +From 92ceabab139262750cc6b61ffc3a6341dedfbbd4 Mon Sep 17 00:00:00 2001
28 +From: tastytea <tastytea@××××××××.de>
29 +Date: Wed, 8 Jun 2022 04:10:27 +0200
30 +Subject: [PATCH] Set default test timeout to 2 minutes
31 +
32 +Bug: https://bugs.gentoo.org/850313
33 +---
34 + config/configProvider.go | 1 +
35 + 1 file changed, 1 insertion(+)
36 +
37 +diff --git a/config/configProvider.go b/config/configProvider.go
38 +index 01a2e8c5..c8f199eb 100644
39 +--- a/config/configProvider.go
40 ++++ b/config/configProvider.go
41 +@@ -57,6 +57,7 @@ func SetBaseTestDefaults(cfg Provider) Provider {
42 + setIfNotSet(cfg, "publishDir", "public")
43 + setIfNotSet(cfg, "workingDir", "")
44 + setIfNotSet(cfg, "defaultContentLanguage", "en")
45 ++ setIfNotSet(cfg, "timeout", "2m")
46 + return cfg
47 + }
48 +
49 +--
50 +2.35.1
51 +
52
53 diff --git a/www-apps/hugo/hugo-0.99.1.ebuild b/www-apps/hugo/hugo-0.99.1.ebuild
54 index 1a189d4c142e..1e707075854f 100644
55 --- a/www-apps/hugo/hugo-0.99.1.ebuild
56 +++ b/www-apps/hugo/hugo-0.99.1.ebuild
57 @@ -40,6 +40,7 @@ PATCHES=(
58 "${FILESDIR}/${PN}-0.96.0-unbundle-libwebp-and-libsass.patch"
59 "${FILESDIR}/${PN}-0.96.0-skip-some-tests.patch"
60 "${FILESDIR}/${PN}-0.99.1-fix-testdecodeconfig-basic.patch"
61 + "${FILESDIR}/${PN}-0.99.1-test-timeout.patch"
62 )
63
64 src_configure() {