Skip test on Windows

This commit is contained in:
Pieter Noordhuis 2024-11-07 22:11:44 +01:00
parent c8382b63a2
commit 1ab0a59ba5
No known key found for this signature in database
GPG Key ID: 12ACCCC104CF2930
1 changed files with 8 additions and 2 deletions

View File

@ -2,6 +2,7 @@ package mutator_test
import (
"context"
"runtime"
"testing"
"github.com/databricks/cli/bundle"
@ -14,8 +15,13 @@ import (
)
func mockBundleForConfigureWSFS(t *testing.T, syncRootPath string) *bundle.Bundle {
// The native path of the sync root on Windows will never match the /Workspace prefix,
// so the test case for nominal behavior will always fail.
if runtime.GOOS == "windows" {
t.Skip("this test is not applicable on Windows")
}
b := &bundle.Bundle{
SyncRootPath: syncRootPath,
SyncRoot: vfs.MustNew(syncRootPath),
}