(t testing.TB, script string)
| 75 | type zshTester struct{} |
| 76 | |
| 77 | func (z zshTester) RunInteractiveShell(t testing.TB, script string) string { |
| 78 | res, err := z.RunInteractiveShellRelaxed(t, "set -eo pipefail\n"+script) |
| 79 | require.NoError(t, err) |
| 80 | return res |
| 81 | } |
| 82 | |
| 83 | func (z zshTester) RunInteractiveShellRelaxed(t testing.TB, script string) (string, error) { |
| 84 | cmd := exec.Command("zsh", "-is") |