Fix up guard and add extra negative test

Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
v0.7
Andy Caldwell 2019-08-29 18:29:47 +01:00
parent 808ad65222
commit d637340066
No known key found for this signature in database
GPG Key ID: D4204541AC1D228D
1 changed files with 5 additions and 4 deletions

View File

@ -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")