Skip to content

Commit cdfd3db

Browse files
committed
[tests] show dotfile installing failure reason
1 parent 5a5792b commit cdfd3db

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/tests/components/ws-manager/dotfiles_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,15 @@ func assertDotfiles(t *testing.T, rsa *integration.RpcClient) error {
174174
}
175175

176176
if len(dotfiles) > 0 {
177+
var cat agent.ExecResponse
178+
err := rsa.Call("WorkspaceAgent.Exec", &agent.ExecRequest{
179+
Dir: "/",
180+
Command: "cat",
181+
Args: []string{"/home/gitpod/.dotfiles.log"},
182+
}, &cat)
183+
if err == nil {
184+
t.Fatalf("dotfiles were not installed successfully: %+v, .dotfiles.log: %s", dotfiles, cat.Stdout)
185+
}
177186
t.Fatalf("dotfiles were not installed successfully: %+v", dotfiles)
178187
}
179188

0 commit comments

Comments
 (0)