mirror of
https://github.com/moby/buildkit.git
synced 2026-08-09 17:18:11 +00:00
Skip tests on Windows that attempt to bind-mount read-only
Containerd's mounter doesn't yet support bind-mounts on Windows. BuildKit short-cuts this for read-write mounts, but not read-only mounts. Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/containerd/containerd/content/local"
|
||||
@@ -25,6 +26,10 @@ import (
|
||||
)
|
||||
|
||||
func TestHTTPSource(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
t.Skip("Depends on unimplemented containerd bind-mount support on Windows")
|
||||
}
|
||||
|
||||
t.Parallel()
|
||||
ctx := context.TODO()
|
||||
|
||||
@@ -139,6 +144,10 @@ func TestHTTPSource(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestHTTPDefaultName(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
t.Skip("Depends on unimplemented containerd bind-mount support on Windows")
|
||||
}
|
||||
|
||||
t.Parallel()
|
||||
ctx := context.TODO()
|
||||
|
||||
@@ -212,6 +221,10 @@ func TestHTTPInvalidURL(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestHTTPChecksum(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
t.Skip("Depends on unimplemented containerd bind-mount support on Windows")
|
||||
}
|
||||
|
||||
t.Parallel()
|
||||
ctx := context.TODO()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user