Drop incorrect 0002-fix-test-fixture-locations.patch
For more details, see:
https://lists.alioth.debian.org/pipermail/pkg-go-maintainers/Week-of-Mon-20180212/019336.html
Michael Stapelberg
5 years ago
2 | 2 |
Priority: extra
|
3 | 3 |
Maintainer: Debian Go Packaging Team <pkg-go-maintainers@lists.alioth.debian.org>
|
4 | 4 |
Uploaders: Tim Potter <tpot@hpe.com>
|
5 | |
Build-Depends: debhelper (>= 9), dh-golang, golang-any, golang-yaml.v2-dev
|
|
5 |
Build-Depends: debhelper (>= 9), dh-golang (>= 1.31), golang-any, golang-yaml.v2-dev
|
6 | 6 |
Standards-Version: 3.9.8
|
7 | 7 |
Homepage: https://github.com/imdario/mergo
|
8 | 8 |
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-go/packages/golang-github-imdario-mergo.git
|
debian/patches/0002-fix-test-fixture-locations.patch
less
more
0 | |
Description: Modify test fixture paths
|
1 | |
The Debian packging process executes Go tests in a subdirectory
|
2 | |
which is not handled correctly. The path to each test fixture
|
3 | |
file has been updated to reflect this.
|
4 | |
Author: Tim Potter <tpot@hpe.com>
|
5 | |
Forwarded: no
|
6 | |
---
|
7 | |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
8 | |
Index: golang-github-imdario-mergo/mergo_test.go
|
9 | |
===================================================================
|
10 | |
--- golang-github-imdario-mergo.orig/mergo_test.go
|
11 | |
+++ golang-github-imdario-mergo/mergo_test.go
|
12 | |
@@ -314,8 +314,8 @@ func TestMaps(t *testing.T) {
|
13 | |
}
|
14 | |
|
15 | |
func TestYAMLMaps(t *testing.T) {
|
16 | |
- thing := loadYAML("testdata/thing.yml")
|
17 | |
- license := loadYAML("testdata/license.yml")
|
18 | |
+ thing := loadYAML("../../../../../testdata/thing.yml")
|
19 | |
+ license := loadYAML("../../../../../testdata/license.yml")
|
20 | |
ft := thing["fields"].(map[interface{}]interface{})
|
21 | |
fl := license["fields"].(map[interface{}]interface{})
|
22 | |
expectedLength := len(ft) + len(fl)
|
0 | 0 |
0001-use-newer-yaml-library.patch
|
1 | |
0002-fix-test-fixture-locations.patch
|