mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-25 14:32:14 +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
|
ResizeX int
|
||||||
ResizeY int
|
ResizeY int
|
||||||
ExtraDelay float64
|
ExtraDelay float64
|
||||||
|
NoSleep bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func captureTerminalOutputWithShellName(t testing.TB, tester shellTester, overriddenShellName string, commands []string) string {
|
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 {
|
if cmd.ExtraDelay != 0 {
|
||||||
fullCommand += fmt.Sprintf(" sleep %f\n", cmd.ExtraDelay)
|
fullCommand += fmt.Sprintf(" sleep %f\n", cmd.ExtraDelay)
|
||||||
}
|
}
|
||||||
fullCommand += " sleep " + sleepAmount + "\n"
|
if !cmd.NoSleep {
|
||||||
|
fullCommand += " sleep " + sleepAmount + "\n"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fullCommand += " sleep 2.5\n"
|
fullCommand += " sleep 2.5\n"
|
||||||
if testutils.IsGithubAction() {
|
if testutils.IsGithubAction() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user