Add additional check against hishtory export to help debug control-r test failures that only reproduce in github actions

This commit is contained in:
David Dworken
2023-11-20 21:00:37 -08:00
parent 428db61064
commit 570ae3e8ac
3 changed files with 10 additions and 2 deletions

View File

@ -260,6 +260,7 @@ func captureTerminalOutputComplex(t testing.TB, captureConfig TmuxCaptureConfig)
fullCommand += "\n"
fullCommand += " tmux kill-session -t foo\n"
testutils.TestLog(t, "Running tmux command: "+fullCommand)
// TODO: Can this use the strict version instead?
out, err := captureConfig.tester.RunInteractiveShellRelaxed(t, fullCommand)
require.NoError(t, err)
return strings.TrimSpace(out)