diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-08-22 20:43:19 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-09-09 20:55:47 -0700 |
commit | 7b757d1cfe88363aa52a660d53838478243eca00 (patch) | |
tree | af9dd9950f13ba22f13dd9c844421b6858eb18f4 /cmd | |
parent | 843488bff4b128f5227657f0e16dd42299420532 (diff) |
add branch rebase integration test
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/integration_test/main.go | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/cmd/integration_test/main.go b/cmd/integration_test/main.go index 83321fc34..dc0cede86 100644 --- a/cmd/integration_test/main.go +++ b/cmd/integration_test/main.go @@ -13,7 +13,7 @@ Usage: See https://github.com/jesseduffield/lazygit/tree/master/pkg/integration/README.md CLI mode: - > go run cmd/integration_test/main.go cli [--slow] <test1> <test2> ... + > go run cmd/integration_test/main.go cli [--slow] [--sandbox] <test1> <test2> ... If you pass no test names, it runs all tests Accepted environment variables: KEY_PRESS_DELAY (e.g. 200): the number of milliseconds to wait between keypresses @@ -42,12 +42,19 @@ func main() { case "cli": testNames := os.Args[2:] slow := false + sandbox := false // get the next arg if it's --slow - if len(os.Args) > 2 && (os.Args[2] == "--slow" || os.Args[2] == "-slow") { - testNames = os.Args[3:] - slow = true + if len(os.Args) > 2 { + if os.Args[2] == "--slow" || os.Args[2] == "-slow" { + testNames = os.Args[3:] + slow = true + } else if os.Args[2] == "--sandbox" || os.Args[2] == "-sandbox" { + testNames = os.Args[3:] + sandbox = true + } } - clients.RunCLI(testNames, slow) + + clients.RunCLI(testNames, slow, sandbox) case "tui": clients.RunTUI() default: |