Skip to content

Commit

Permalink
Disable tcsh test for GithubActionRunner.
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyDev committed Aug 24, 2021
1 parent 1ba150f commit 79c56b3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/integration/functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,21 @@ func validateDockerEnv(ctx context.Context, t *testing.T, profile string) {
windowsTests := []ShellTest{
{"powershell", []string{"powershell.exe", "-NoProfile", "-NonInteractive"}, "%[1]s -p %[2]s docker-env | Invoke-Expression ; "},
}
bashTest := ShellTest{"bash", []string{"/bin/bash", "-c"}, "eval $(%[1]s -p %[2]s docker-env) && "}
tcshTest := ShellTest{"tcsh", []string{"/bin/tcsh", "-c"}, "setenv SHELL /bin/tcsh && eval `%[1]s -p %[2]s docker-env` && "}
posixTests := []ShellTest{
{"bash", []string{"/bin/bash", "-c"}, "eval $(%[1]s -p %[2]s docker-env) && "},
{"tcsh", []string{"/bin/tcsh", "-c"}, "setenv SHELL /bin/tcsh && eval `%[1]s -p %[2]s docker-env` && "},
bashTest,
tcshTest,
}
githubTests := []ShellTest{
bashTest,
}

tests := posixTests
if runtime.GOOS == "windows" {
tests = windowsTests
} else if GithubActionRunner() {
tests = githubTests
}
for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
Expand Down

0 comments on commit 79c56b3

Please sign in to comment.