mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-25 06:22:24 +02:00
Add support for NoSleep param to test runner
This commit is contained in:
parent
482f7ae021
commit
9d0edba3a3
@ -168,6 +168,7 @@ type TmuxCommand struct {
|
||||
ResizeX int
|
||||
ResizeY int
|
||||
ExtraDelay float64
|
||||
NoSleep bool
|
||||
}
|
||||
|
||||
func captureTerminalOutputWithShellName(t testing.TB, tester shellTester, overriddenShellName string, commands []string) string {
|
||||
@ -246,7 +247,9 @@ func buildTmuxInputCommands(t testing.TB, captureConfig TmuxCaptureConfig) strin
|
||||
if cmd.ExtraDelay != 0 {
|
||||
fullCommand += fmt.Sprintf(" sleep %f\n", cmd.ExtraDelay)
|
||||
}
|
||||
fullCommand += " sleep " + sleepAmount + "\n"
|
||||
if !cmd.NoSleep {
|
||||
fullCommand += " sleep " + sleepAmount + "\n"
|
||||
}
|
||||
}
|
||||
fullCommand += " sleep 2.5\n"
|
||||
if testutils.IsGithubAction() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user