1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-07 22:02:56 +03:00

add branch rebase integration test

This commit is contained in:
Jesse Duffield
2022-08-22 20:43:19 +10:00
parent 843488bff4
commit 7b757d1cfe
126 changed files with 309 additions and 241 deletions

View File

@@ -23,18 +23,25 @@ import (
// If invoked directly, you can specify tests to run by passing their names as positional arguments
func RunCLI(testNames []string, slow bool) {
func RunCLI(testNames []string, slow bool, sandbox bool) {
keyPressDelay := tryConvert(os.Getenv("KEY_PRESS_DELAY"), 0)
if slow {
keyPressDelay = SLOW_KEY_PRESS_DELAY
}
var mode components.Mode
if sandbox {
mode = components.SANDBOX
} else {
mode = getModeFromEnv()
}
err := components.RunTests(
getTestsToRun(testNames),
log.Printf,
runCmdInTerminal,
runAndPrintFatalError,
getModeFromEnv(),
mode,
keyPressDelay,
)
if err != nil {