Skip to content

Commit

Permalink
[testing] Enable verbose image build output for bootstrap-monitor e2e (
Browse files Browse the repository at this point in the history
  • Loading branch information
marun authored Oct 11, 2024
1 parent ab58a80 commit 9d6dba8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/fixture/bootstrapmonitor/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,18 @@ func buildImage(tc tests.TestContext, imageName string, forceNewHash bool, scrip
repoRoot, err := e2e.GetRepoRootPath(repoRelativePath)
require.NoError(err)

var args []string
args := []string{
"-x", // Ensure script output to aid in debugging
filepath.Join(repoRoot, "scripts", scriptName),
}
if forceNewHash {
// Ensure the build results in a new image hash by preventing use of a cached final stage
args = append(args, "--no-cache-filter", "execution")
}

cmd := exec.CommandContext(
tc.DefaultContext(),
filepath.Join(repoRoot, "scripts", scriptName),
"bash",
args...,
) // #nosec G204
cmd.Env = append(os.Environ(),
Expand Down

0 comments on commit 9d6dba8

Please sign in to comment.