commit:     bb5222d980dca601d08430aeff584588dac305a1
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  7 12:24:43 2019 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu Nov  7 12:26:01 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb5222d9

net-p2p/syncthing-1.3.1: temporarily restrict tests if USE=tools is set

For some reason the switch to go-module.eclass has resulted in the
following test failure appearing repeatedly when USE=tools is set:

--- FAIL: TestAPIServiceRequests (5.45s)
    api_test.go:394: Testing /rest/db/completion?device=<snip>
    api_test.go:394: Testing /rest/db/file?folder=default&file=something ...
    api_test.go:394: Testing /rest/db/ignores?folder=default ...
    api_test.go:394: Testing /rest/db/need?folder=default ...
    api_test.go:394: Testing /rest/db/status?folder=default ...
    api_test.go:394: Testing /rest/db/browse?folder=default ...
    api_test.go:394: Testing /rest/stats/device ...
    api_test.go:394: Testing /rest/stats/folder ...
    api_test.go:394: Testing /rest/svc/deviceid?id=<snip>
    api_test.go:394: Testing /rest/svc/lang ...
    api_test.go:394: Testing /rest/svc/report ...
    api_test.go:419: Unexpected error requesting /rest/svc/report: Get
http://127.0.0.1:36607/rest/svc/report: net/http: request canceled
(Client.Timeout exceeded while awaiting headers)
    api_test.go:394: Testing /rest/system/browse?current=~ ...
    api_test.go:394: Testing /rest/system/config ...
    api_test.go:394: Testing /rest/system/config/insync ...
    api_test.go:394: Testing /rest/system/connections ...
    api_test.go:394: Testing /rest/system/discovery ...
    api_test.go:394: Testing /rest/system/error?since=0 ...
    api_test.go:394: Testing /rest/system/ping ...
    api_test.go:394: Testing /rest/system/status ...
    api_test.go:394: Testing /rest/system/version ...
    api_test.go:394: Testing /rest/system/debug ...
    api_test.go:394: Testing /rest/system/log?since=0 ...
    api_test.go:394: Testing /rest/system/log.txt?since=0 ...
FAIL
FAIL    github.com/syncthing/syncthing/lib/api  66.295s

This may or may not be a consequence of the fact Syncthing upstream
doesn't fully support go-1.13 yet, as shown by the fact their CI
configuration uses the very-much-not-recommended workaround of deleting
go.sum. Anyway, since the tests pass with USE=-tools and there have been
requests for Syncthing ebuilds with go-1.13 support, disable testing
when USE=tools is set until the problem has been resolved.

Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 net-p2p/syncthing/syncthing-1.3.1.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/net-p2p/syncthing/syncthing-1.3.1.ebuild 
b/net-p2p/syncthing/syncthing-1.3.1.ebuild
index 8f0e558ef16..7fb9fed4738 100644
--- a/net-p2p/syncthing/syncthing-1.3.1.ebuild
+++ b/net-p2p/syncthing/syncthing-1.3.1.ebuild
@@ -77,6 +77,12 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~x86"
 IUSE="selinux tools"
 
+# For some reason the switch to go-module.eclass has resulted in the test suite
+# failing when USE=tools is set. Temporarily disable testing under such 
circumstances
+# so that there is a a working go1.13-compatible version out there already, 
will
+# continue to look into this.
+RESTRICT="tools? ( test )"
+
 RDEPEND="acct-group/syncthing
        acct-user/syncthing
        tools? ( acct-group/stdiscosrv

Reply via email to