1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Description: Allow TestSimple/cover to PASS during Debian/Ubuntu package build
gotooltest/testdata/cover.txt runs "go mod tidy" which fails with
"dial tcp: lookup proxy.golang.org: no such host". See the build logs at
https://launchpad.net/ubuntu/+source/golang-github-rogpeppe-go-internal/1.8.0-1
for more information.
.
This is for patching in override_dh_auto_test in debian/rules only.
Do not add to debian/patches/series.
Author: Anthony Fok <foka@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2021-12-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/_build/src/github.com/rogpeppe/go-internal/testscript/testscript.go
+++ b/_build/src/github.com/rogpeppe/go-internal/testscript/testscript.go
@@ -735,6 +735,14 @@
// fatalf aborts the test with the given failure message.
func (ts *TestScript) Fatalf(format string, args ...interface{}) {
fmt.Fprintf(&ts.log, "FAIL: %s:%d: %s\n", ts.file, ts.lineno, fmt.Sprintf(format, args...))
+
+ // Allow TestSimple/cover to PASS during Debian/Ubuntu package build
+ t, ok := (ts.t).(tshim)
+ if ok && t.Name() == "TestSimple/cover" {
+ fmt.Fprintf(&ts.log, "SKIP: %s: Possible restricted network access\n", t.Name())
+ ts.t.Skip()
+ }
+
ts.t.FailNow()
}
|