Use cutlass test helper CopyCfHome
@@ -4,6 +4,7 @@ import (
"encoding/json"
"flag"
"fmt"
+ "os"
"time"
"github.com/cloudfoundry/libbuildpack/cutlass"
@@ -51,12 +52,14 @@ var _ = SynchronizedBeforeSuite(func() []byte {
bpDir, err = cutlass.FindRoot()
Expect(err).NotTo(HaveOccurred())
+ Expect(cutlass.CopyCfHome()).To(Succeed())
cutlass.SeedRandom()
cutlass.DefaultStdoutStderr = GinkgoWriter
})
var _ = SynchronizedAfterSuite(func() {
// Run on all nodes
+ Expect(os.RemoveAll(os.Getenv("CF_HOME"))).To(Succeed())
}, func() {
// Run once
Expect(cutlass.RemovePackagedBuildpack(packagedBuildpack)).To(Succeed())
