Fix up guard and add extra negative test
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>v0.7
parent
808ad65222
commit
d637340066
|
@ -62,11 +62,16 @@ RUN ip link show eth0
|
|||
}
|
||||
|
||||
func runNoNetwork(t *testing.T, sb integration.Sandbox) {
|
||||
if os.Getenv("BUILDKIT_RUN_NETWORK_INTEGRATION_TESTS") == "" {
|
||||
t.SkipNow()
|
||||
}
|
||||
|
||||
f := getFrontend(t, sb)
|
||||
|
||||
dockerfile := []byte(`
|
||||
FROM busybox
|
||||
RUN --network=none ! ip link show eth0
|
||||
RUN ip link show eth0
|
||||
`)
|
||||
|
||||
dir, err := tmpdir(
|
||||
|
@ -138,10 +143,6 @@ RUN ! nc 127.0.0.1 %s | grep foo
|
|||
}
|
||||
|
||||
func runGlobalNetwork(t *testing.T, sb integration.Sandbox) {
|
||||
if os.Getenv("BUILDKIT_RUN_NETWORK_INTEGRATION_TESTS") == "" {
|
||||
t.SkipNow()
|
||||
}
|
||||
|
||||
f := getFrontend(t, sb)
|
||||
|
||||
s, err := echoserver.NewTestServer("foo")
|
||||
|
|
Loading…
Reference in New Issue