Specify tmux session in capture-pane command

This commit is contained in:
David Dworken 2022-11-12 07:20:05 -08:00
parent 8894328483
commit bc83349133
No known key found for this signature in database

View File

@ -1869,7 +1869,7 @@ func captureTerminalOutputWithShellNameAndDimensions(t *testing.T, tester shellT
fullCommand += " sleep " + sleepAmount + "\n"
}
fullCommand += " sleep 0.5\n"
fullCommand += " tmux capture-pane -p\n"
fullCommand += " tmux capture-pane -t foo -p\n"
fullCommand += " tmux kill-session -t foo\n"
hctx.GetLogger().Infof("Running tmux command: " + fullCommand)
return strings.TrimSpace(tester.RunInteractiveShell(t, fullCommand))