diff --git a/src/extensions/bigbang/test/bigbang_test.go b/src/extensions/bigbang/test/bigbang_test.go index ef52824ec5..d36e94f590 100644 --- a/src/extensions/bigbang/test/bigbang_test.go +++ b/src/extensions/bigbang/test/bigbang_test.go @@ -49,15 +49,18 @@ func TestMain(m *testing.M) { } func TestReleases(t *testing.T) { - tmpdir := "" + CIMount := "/mnt/zarf-tmp" + tmpdir := fmt.Sprintf("--tmpdir=%s", t.TempDir()) + zarfCache := "" // If we are in CI set the temporary directory to /mnt/zarf-tmp to reduce disk pressure if os.Getenv("CI") == "true" { - tmpdir = "--tmpdir=/mnt/zarf-tmp" + tmpdir = fmt.Sprintf("--tmpdir=%s", CIMount) + zarfCache = fmt.Sprintf("--zarf-cache=%s", CIMount) } // Initialize the cluster with the Git server and AMD64 architecture arch := "amd64" - stdOut, stdErr, err := zarfExec("init", "--components", "git-server", "--architecture", arch, tmpdir, "--confirm") + stdOut, stdErr, err := zarfExec("init", "--components", "git-server", "--architecture", arch, tmpdir, "--confirm", zarfCache) require.NoError(t, err, stdOut, stdErr) // Remove the init package to free up disk space on the test runner