Skip to content

Commit

Permalink
ci: Re-enable Windows tests with temp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFriel committed Sep 21, 2022
1 parent 5493b82 commit 396650a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
17 changes: 10 additions & 7 deletions scripts/get-job-matrix.py
Expand Up @@ -150,13 +150,16 @@ def run_list_tests(pkg_dir: str, tags: List[str]) -> List[str]:
# $ go test -tags all --list ./tests/integration
# no Go files in /home/friel/c/github.com/pulumi/pulumi
# ```
cmd = sp.run(
["go", "test", "-tags", " ".join(tags), "--list", "."],
check=True,
cwd=pkg_dir,
capture_output=True,
text=True,
)
try:
cmd = sp.run(
["go", "test", "-tags", " ".join(tags), "--list", "."],
check=True,
cwd=pkg_dir,
capture_output=True,
text=True,
)
except sp.CalledProcessError as err:
raise Exception("Failed to list packages in module, usually this implies a Go compilation error. Check that `make lint` succeeds.") from err

tests: List[str] = []

Expand Down
13 changes: 0 additions & 13 deletions sdk/go/common/workspace/plugins_install_test.go
Expand Up @@ -25,7 +25,6 @@ import (
"io/ioutil"
"os"
"path/filepath"
"runtime"
"sync"
"testing"

Expand Down Expand Up @@ -171,10 +170,6 @@ func testPluginInstall(t *testing.T, expectedDir string, files map[string][]byte
}

func TestInstallNoDeps(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("TODO[pulumi/pulumi#8649] Skipped on Windows: issues with TEMP dir")
}

name := "foo.txt"
content := []byte("hello\n")

Expand All @@ -194,10 +189,6 @@ func TestInstallNoDeps(t *testing.T) {
}

func TestReinstall(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("TODO[pulumi/pulumi#8649] Skipped on Windows: issues with TEMP dir")
}

name := "foo.txt"
content := []byte("hello\n")

Expand Down Expand Up @@ -228,10 +219,6 @@ func TestReinstall(t *testing.T) {
}

func TestConcurrentInstalls(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("TODO[pulumi/pulumi#8649] Skipped on Windows: issues with TEMP dir")
}

name := "foo.txt"
content := []byte("hello\n")

Expand Down

0 comments on commit 396650a

Please sign in to comment.