Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test(agent/agentssh): use fish shell compatible exit status checking
  • Loading branch information
ethanndickson committed Jul 10, 2025
commit 106af85f24181e341712d656cc511fa69c3b3f1e
2 changes: 1 addition & 1 deletion agent/agentssh/agentssh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func TestSSHServer_ClosesStdin(t *testing.T) {
// exit code 1 if it hits EOF, which is what we want to test.
cmdErrCh := make(chan error, 1)
go func() {
cmdErrCh <- sess.Start(fmt.Sprintf("echo started; read; echo \"read exit code: $?\" > %s", filePath))
cmdErrCh <- sess.Start(fmt.Sprintf(`echo started; echo "read exit code: $(read && echo 0 || echo 1)" > %s`, filePath))
}()

cmdErr := testutil.RequireReceive(ctx, t, cmdErrCh)
Expand Down
Loading