summaryrefslogtreecommitdiff
path: root/integration/test/src/mill/integration/IntegrationTestSuite.scala
diff options
context:
space:
mode:
Diffstat (limited to 'integration/test/src/mill/integration/IntegrationTestSuite.scala')
-rw-r--r--integration/test/src/mill/integration/IntegrationTestSuite.scala11
1 files changed, 5 insertions, 6 deletions
diff --git a/integration/test/src/mill/integration/IntegrationTestSuite.scala b/integration/test/src/mill/integration/IntegrationTestSuite.scala
index 721557c0..ca041eea 100644
--- a/integration/test/src/mill/integration/IntegrationTestSuite.scala
+++ b/integration/test/src/mill/integration/IntegrationTestSuite.scala
@@ -1,29 +1,28 @@
package mill.integration
-import ammonite.ops._
import mill.util.ScriptTestSuite
import utest._
abstract class IntegrationTestSuite(repoKey: String, val workspaceSlug: String, fork: Boolean)
extends ScriptTestSuite(fork){
- val buildFilePath = pwd / 'integration / 'test / 'resources / workspaceSlug
+ val buildFilePath = os.pwd / 'integration / 'test / 'resources / workspaceSlug
def scriptSourcePath = {
// The unzipped git repo snapshots we get from github come with a
// wrapper-folder inside the zip file, so copy the wrapper folder to the
// destination instead of the folder containing the wrapper.
val path = sys.props(repoKey)
- val Seq(wrapper) = ls(Path(path))
+ val Seq(wrapper) = os.list(os.Path(path))
wrapper
}
- def buildFiles: Seq[Path] = ls.rec(buildFilePath)
+ def buildFiles: Seq[os.Path] = os.walk(buildFilePath)
override def initWorkspace() = {
super.initWorkspace()
buildFiles.foreach { file =>
- cp.over(file, workspacePath / file.name)
+ os.copy.over(file, workspacePath / file.last)
}
- assert(!ls.rec(workspacePath).exists(_.ext == "class"))
+ assert(!os.walk(workspacePath).exists(_.ext == "class"))
}
}