File: tests-unshare.patch

package info (click to toggle)
golang-github-safchain-ethtool 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 280 kB
  • sloc: makefile: 12
file content (66 lines) | stat: -rw-r--r-- 1,918 bytes parent folder | download
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
From: Reinhard Tartler <siretart@tauware.de>
Date: Thu, 25 Jul 2024 07:34:09 +0200
Subject: Disable tests that break with `unshare -nr`
Bug-Debian: https://bugs.debian.org/1074729
Forwarded: not-needed

---
 ethtool_cmd_test.go    | 2 ++
 ethtool_msglvl_test.go | 1 +
 ethtool_test.go        | 3 +++
 3 files changed, 6 insertions(+)

--- a/ethtool_cmd_test.go
+++ b/ethtool_cmd_test.go
@@ -29,6 +29,7 @@
 )
 
 func TestCmdGet(t *testing.T) {
+	t.Skip("Unsuitable test for Debian buildds, cf. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074729#48")
 	intfs, err := net.Interfaces()
 	if err != nil {
 		t.Fatal(err)
@@ -59,6 +60,7 @@
 }
 
 func TestCmdGetMapped(t *testing.T) {
+	t.Skip("Unsuitable test for Debian buildds, cf. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074729#48")
 	intfs, err := net.Interfaces()
 	if err != nil {
 		t.Fatal(err)
--- a/ethtool_msglvl_test.go
+++ b/ethtool_msglvl_test.go
@@ -29,6 +29,7 @@
 )
 
 func TestMsglvlGet(t *testing.T) {
+	t.Skip("Unsuitable test for Debian buildds, cf. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074729#48")
 	intfs, err := net.Interfaces()
 	if err != nil {
 		t.Fatal(err)
--- a/ethtool_test.go
+++ b/ethtool_test.go
@@ -45,6 +45,7 @@
 }
 
 func TestStats(t *testing.T) {
+	t.Skip("Unsuitable test for Debian buildds, cf. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074729#48")
 	intfs, err := net.Interfaces()
 	if err != nil {
 		t.Fatal(err)
@@ -70,6 +71,7 @@
 }
 
 func TestDriverName(t *testing.T) {
+	t.Skip("Unsuitable test for Debian buildds, cf. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074729#48")
 	intfs, err := net.Interfaces()
 	if err != nil {
 		t.Fatal(err)
@@ -90,6 +92,7 @@
 }
 
 func TestBusInfo(t *testing.T) {
+	t.Skip("Unsuitable test for Debian buildds, cf. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074729#48")
 	intfs, err := net.Interfaces()
 	if err != nil {
 		t.Fatal(err)