Skip to content

Commit

Permalink
Add logging of deploy-services.sh in error case
Browse files Browse the repository at this point in the history
Signed-off-by: John Kjell <[email protected]>
  • Loading branch information
jkjell committed May 1, 2024
1 parent f3069f3 commit 860a568
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/archivistactl/cmd/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,16 @@ func (e2e *E2EStoreSuite) Test_E2E() {
// Call the script to deploy the containers for the test cases
for _, testDB := range testDBCases {
cmd := exec.Command("bash", "../../../test/deploy-services.sh", "start-"+testDB)
var out strings.Builder
cmd.Stdout = &out
err := cmd.Start()
if err != nil {
e2e.FailNow(err.Error())
}
e2e.T().Log("Starting services using DB: " + testDB)
err = cmd.Wait()
if err != nil {
e2e.T().Log(out.String())
e2e.FailNow(err.Error())
}

Expand Down

0 comments on commit 860a568

Please sign in to comment.