mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-09 15:15:08 +02:00
Add presaving test for fish
This commit is contained in:
@ -197,8 +197,7 @@ type TmuxCaptureConfig struct {
|
||||
includeEscapeSequences bool
|
||||
}
|
||||
|
||||
func captureTerminalOutputComplex(t testing.TB, captureConfig TmuxCaptureConfig) string {
|
||||
require.NotNil(t, captureConfig.tester)
|
||||
func buildTmuxInputCommands(t testing.TB, captureConfig TmuxCaptureConfig) string {
|
||||
if captureConfig.overriddenShellName == "" {
|
||||
captureConfig.overriddenShellName = captureConfig.tester.ShellName()
|
||||
}
|
||||
@ -252,6 +251,13 @@ func captureTerminalOutputComplex(t testing.TB, captureConfig TmuxCaptureConfig)
|
||||
if testutils.IsGithubAction() {
|
||||
fullCommand += " sleep 2.5\n"
|
||||
}
|
||||
return fullCommand
|
||||
}
|
||||
|
||||
func captureTerminalOutputComplex(t testing.TB, captureConfig TmuxCaptureConfig) string {
|
||||
require.NotNil(t, captureConfig.tester)
|
||||
fullCommand := ""
|
||||
fullCommand += buildTmuxInputCommands(t, captureConfig)
|
||||
fullCommand += " tmux capture-pane -t foo -p"
|
||||
if captureConfig.includeEscapeSequences {
|
||||
// -e ensures that tmux runs the command in an environment that supports escape sequences. Used for rendering colors in the TUI.
|
||||
|
Reference in New Issue
Block a user