1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-23 16:22:24 +03:00

add another bisect integration test

This commit is contained in:
Jesse Duffield
2022-01-26 16:46:54 +11:00
parent 5e9cfab283
commit 5e6e1617aa
170 changed files with 293 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ package integration
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
@@ -251,8 +252,8 @@ func createFixture(testPath, actualDir string) error {
bashScriptPath := filepath.Join(testPath, "setup.sh")
cmd := secureexec.Command("bash", bashScriptPath, actualDir)
if _, err := cmd.CombinedOutput(); err != nil {
return err
if output, err := cmd.CombinedOutput(); err != nil {
return errors.New(string(output))
}
return nil