Skip to content

Commit

Permalink
another similar fix for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Feb 1, 2024
1 parent 228643a commit c78f9d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/config/playbook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ func TestPlaybook_New(t *testing.T) {
assert.Equal(t, 1, len(c.Tasks), "single task")
assert.Equal(t, "umputun", c.User, "user")
assert.Equal(t, "/bin/sh", c.Tasks[0].Commands[0].SSHShell, "ssh shell")
assert.Equal(t, os.Getenv("SHELL"), c.Tasks[0].Commands[0].LocalShell, "local shell")
expShell := os.Getenv("SHELL")
if expShell == "" {
expShell = "/bin/sh"
}
assert.Equal(t, expShell, c.Tasks[0].Commands[0].LocalShell, "local shell")

tsk := c.Tasks[0]
assert.Equal(t, 5, len(tsk.Commands), "5 commands")
Expand Down

0 comments on commit c78f9d6

Please sign in to comment.