rabbah commented on a change in pull request #2357: Cli should ignore a config 
file env variable value of empty string
URL: 
https://github.com/apache/incubator-openwhisk/pull/2357#discussion_r121461795
 
 

 ##########
 File path: tests/src/test/scala/common/Wsk.scala
 ##########
 @@ -869,7 +869,8 @@ class WskApi()
             { apiname map { a => Seq("--apiname", a) } getOrElse Seq() } ++
             { swagger map { s => Seq("--config-file", s) } getOrElse Seq() } ++
             { responsetype map { t => Seq("--response-type", t) } getOrElse 
Seq() }
-        cli(wp.overrides ++ params, expectedExitCode, showCmd = true, 
env=Map("WSK_CONFIG_FILE" -> cliCfgFile.getOrElse("")))
+        val envMap = { cliCfgFile map {f => Map("WSK_CONFIG_FILE" -> f) } 
getOrElse Map() }
 
 Review comment:
   my concern is that a local props file will override test settings - this has 
happened which is why this flag override exists (I can look for the original PR 
if it helps). 
 
----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to