You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by GitBox <gi...@apache.org> on 2018/03/01 13:35:36 UTC

[GitHub] stevedlawrence commented on a change in pull request #50: Move CLI tests to sbt integration

stevedlawrence commented on a change in pull request #50: Move CLI tests to sbt integration
URL: https://github.com/apache/incubator-daffodil/pull/50#discussion_r171558978
 
 

 ##########
 File path: daffodil-cli/src/it/scala/org/apache/daffodil/CLI/Util.scala
 ##########
 @@ -43,9 +42,8 @@ object Util {
   val binPath = Paths.get(dafRoot, "daffodil-cli", "target", "universal", "stage", "bin", String.format("daffodil%s", (if (isWindows) ".bat" else ""))).toString()
 
   def getExpectedString(filename: String, convertToDos: Boolean = false): String = {
-    val rsrc = Misc.getRequiredResource(outputDir + filename)
-    //val source = scala.io.Source.fromFile(outputDir + filename)
-    val source = scala.io.Source.fromFile(rsrc)
+    val is = getClass.getResourceAsStream(outputDir + filename)
 
 Review comment:
   This fixed it. Thanks!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services