Skip to content

Commit

Permalink
print out error
Browse files Browse the repository at this point in the history
  • Loading branch information
cfal committed Mar 28, 2024
1 parent f26e30d commit 7732a6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions integration-tests/common/common.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package common

import (
"bytes"
"fmt"
"os"
"os/exec"
Expand Down Expand Up @@ -181,17 +182,23 @@ func (c *Common) SetLocalEnvironment(t *testing.T) {
log.Info().Msg("Starting wasmd container...")
err := exec.Command("../scripts/wasmd.sh").Run()
require.NoError(t, err, "Could not start wasmd container")

log.Info().Msg("Starting postgres container...")
err = exec.Command("../scripts/postgres.sh").Run()
require.NoError(t, err, "Could not start postgres container")

log.Info().Msg("Starting mock adapter...")
err = exec.Command("../scripts/mock-adapter.sh").Run()
require.NoError(t, err, "Could not start mock adapter")

log.Info().Msg("Starting core nodes...")
cmd := exec.Command("../scripts/core.sh")
cmd.Env = append(os.Environ(), fmt.Sprintf("CL_CONFIG=%s", c.ChainlinkConfig))
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err = cmd.Run()
require.NoError(t, err, "Could not start core nodes")

log.Info().Msg("Set up local stack complete.")

// Set ChainlinkNodeDetails
Expand Down
2 changes: 1 addition & 1 deletion scripts/core.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -euo pipefail
set -euox pipefail

bash "$(dirname -- "$0")/core.down.sh"

Expand Down

0 comments on commit 7732a6a

Please sign in to comment.