From a28b5464579986e2a171d2008c86756bdea60661 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Mon, 29 Apr 2019 00:51:57 -0400 Subject: [PATCH] isolate Ivy homes during tests --- .../internal/librarymanagement/BaseIvySpecification.scala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ivy/src/test/scala/sbt/internal/librarymanagement/BaseIvySpecification.scala b/ivy/src/test/scala/sbt/internal/librarymanagement/BaseIvySpecification.scala index b8034995a..f6add3e61 100644 --- a/ivy/src/test/scala/sbt/internal/librarymanagement/BaseIvySpecification.scala +++ b/ivy/src/test/scala/sbt/internal/librarymanagement/BaseIvySpecification.scala @@ -11,9 +11,10 @@ import Configurations._ trait BaseIvySpecification extends AbstractEngineSpec { def currentBase: File = new File(".") - def currentTarget: File = currentBase / "target" / "ivyhome" - def currentManaged: File = currentBase / "target" / "lib_managed" - def currentDependency: File = currentBase / "target" / "dependency" + def label: String = this.getClass.getSimpleName + def currentTarget: File = currentBase / "target" / label / "ivyhome" + def currentManaged: File = currentBase / "target" / label / "lib_managed" + def currentDependency: File = currentBase / "target" / label / "dependency" def defaultModuleId: ModuleID = ModuleID("com.example", "foo", "0.1.0").withConfigurations(Some("compile"))