summaryrefslogtreecommitdiff
path: root/scalalib/test
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-01-28 00:07:12 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-01-28 00:07:12 -0800
commit60f0a0ae5098b28999c279f0cdb105921b2c113a (patch)
treed62d83e8c2045521bb70560b65b3e34bd8ec383a /scalalib/test
parent02ebf026df6e08e9de8bef6dfec03d14ea46dfa1 (diff)
downloadmill-60f0a0ae5098b28999c279f0cdb105921b2c113a.tar.gz
mill-60f0a0ae5098b28999c279f0cdb105921b2c113a.tar.bz2
mill-60f0a0ae5098b28999c279f0cdb105921b2c113a.zip
Fix gen idea tests
Diffstat (limited to 'scalalib/test')
-rw-r--r--scalalib/test/src/mill/scalalib/GenIdeaTests.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/scalalib/test/src/mill/scalalib/GenIdeaTests.scala b/scalalib/test/src/mill/scalalib/GenIdeaTests.scala
index d49e6a1c..ae5810df 100644
--- a/scalalib/test/src/mill/scalalib/GenIdeaTests.scala
+++ b/scalalib/test/src/mill/scalalib/GenIdeaTests.scala
@@ -29,10 +29,10 @@ object GenIdeaTests extends TestSuite {
def tests: Tests = Tests {
'genIdeaTests - {
helloWorldEvaluator(HelloWorld.scalaVersion)
- val x = GenIdea.xmlFileLayout(helloWorldEvaluator.evaluator, HelloWorld)
val pp = new scala.xml.PrettyPrinter(999, 4)
- for((relPath, xml) <- GenIdea.xmlFileLayout(helloWorldEvaluator.evaluator, HelloWorld)){
+ val layout = GenIdea.xmlFileLayout(helloWorldEvaluator.evaluator, HelloWorld, fetchMillModules = false)
+ for((relPath, xml) <- layout){
write.over(basePath/ "generated"/ relPath, pp.format(xml))
}
@@ -60,7 +60,7 @@ object GenIdeaTests extends TestSuite {
"gen-idea/idea/modules.xml" ->
basePath / "generated" / ".idea" / "modules.xml",
"gen-idea/idea/misc.xml" ->
- basePath / "generated" / ".idea" / "misc.xml",
+ basePath / "generated" / ".idea" / "misc.xml"
).foreach { case (resource, generated) =>
val resourceString = scala.io.Source.fromResource(resource).getLines().mkString("\n")
val generatedString = normaliseLibraryPaths(read! generated)