Fixing Travis builds by allowing short tests.
Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
This commit is contained in:
parent
4fe2c7a4db
commit
63cfaa86b3
|
@ -61,6 +61,10 @@ func ipAssigned(iface *net.Interface, ip net.IP) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestNetworkLinkAddDel(t *testing.T) {
|
func TestNetworkLinkAddDel(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
testLinks := []testLink{
|
testLinks := []testLink{
|
||||||
{"tstEth", "dummy"},
|
{"tstEth", "dummy"},
|
||||||
{"tstBr", "bridge"},
|
{"tstBr", "bridge"},
|
||||||
|
@ -74,6 +78,10 @@ func TestNetworkLinkAddDel(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestNetworkLinkUpDown(t *testing.T) {
|
func TestNetworkLinkUpDown(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
tl := testLink{name: "tstEth", linkType: "dummy"}
|
tl := testLink{name: "tstEth", linkType: "dummy"}
|
||||||
|
|
||||||
addLink(t, tl.name, tl.linkType)
|
addLink(t, tl.name, tl.linkType)
|
||||||
|
@ -95,6 +103,10 @@ func TestNetworkLinkUpDown(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestNetworkSetMacAddress(t *testing.T) {
|
func TestNetworkSetMacAddress(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
tl := testLink{name: "tstEth", linkType: "dummy"}
|
tl := testLink{name: "tstEth", linkType: "dummy"}
|
||||||
macaddr := "22:ce:e0:99:63:6f"
|
macaddr := "22:ce:e0:99:63:6f"
|
||||||
|
|
||||||
|
@ -115,6 +127,10 @@ func TestNetworkSetMacAddress(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestNetworkSetMTU(t *testing.T) {
|
func TestNetworkSetMTU(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
tl := testLink{name: "tstEth", linkType: "dummy"}
|
tl := testLink{name: "tstEth", linkType: "dummy"}
|
||||||
mtu := 1400
|
mtu := 1400
|
||||||
|
|
||||||
|
@ -135,6 +151,10 @@ func TestNetworkSetMTU(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestNetworkSetMasterNoMaster(t *testing.T) {
|
func TestNetworkSetMasterNoMaster(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
master := testLink{"tstBr", "bridge"}
|
master := testLink{"tstBr", "bridge"}
|
||||||
slave := testLink{"tstEth", "dummy"}
|
slave := testLink{"tstEth", "dummy"}
|
||||||
testLinks := []testLink{master, slave}
|
testLinks := []testLink{master, slave}
|
||||||
|
|
Loading…
Reference in New Issue