Skip to content

Commit

Permalink
Skip test on github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
guionardo committed Oct 23, 2022
1 parent 52ab430 commit a9e9b6e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/shell/shell_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
package shell

import (
"os"
"strings"
"testing"
)

func TestGetShellInfo(t *testing.T) {
if len(os.Getenv("GITHUB_WORKFLOW")) > 0 {
t.Skip("Skipping test on github workflow")
return
}
tests := []struct {
name string
wantShellName string
Expand All @@ -17,7 +22,7 @@ func TestGetShellInfo(t *testing.T) {
wantShellName: "bash",
wantRcFile: ".bashrc",
wantErr: false,
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit a9e9b6e

Please sign in to comment.