Remove os.RemoveAll CF_HOME
Causes delete orphaned routes to fail as we are no longer logged in
@@ -4,8 +4,6 @@ import (
"encoding/json"
"flag"
"fmt"
- "os"
- "strings"
"time"
"github.com/cloudfoundry/libbuildpack/cutlass"
@@ -60,9 +58,6 @@ var _ = SynchronizedBeforeSuite(func() []byte {
var _ = SynchronizedAfterSuite(func() {
// Run on all nodes
- if strings.HasPrefix(os.Getenv("CF_HOME"), "/tmp") {
- Expect(os.RemoveAll(os.Getenv("CF_HOME"))).To(Succeed())
- }
}, func() {
// Run once
Expect(cutlass.RemovePackagedBuildpack(packagedBuildpack)).To(Succeed())
