diff options
author | Tobias Roeser <le.petit.fou@web.de> | 2018-10-29 22:10:25 +0100 |
---|---|---|
committer | Tobias Roeser <le.petit.fou@web.de> | 2018-10-30 09:31:42 +0100 |
commit | 93ffab54211c3150b4c3568d75519dc6426f6044 (patch) | |
tree | 109bd12e793d8e5c3b969b229db3ff712e1a85d3 /main/test/src | |
parent | c92eb6f6f2c482e9fe838bc0f4de97d7c2c19646 (diff) | |
download | mill-93ffab54211c3150b4c3568d75519dc6426f6044.tar.gz mill-93ffab54211c3150b4c3568d75519dc6426f6044.tar.bz2 mill-93ffab54211c3150b4c3568d75519dc6426f6044.zip |
Added new cmdline option --debug,-d to enable debug log
Diffstat (limited to 'main/test/src')
-rw-r--r-- | main/test/src/mill/util/ScriptTestSuite.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/test/src/mill/util/ScriptTestSuite.scala b/main/test/src/mill/util/ScriptTestSuite.scala index 0b0c4011..9d3edb65 100644 --- a/main/test/src/mill/util/ScriptTestSuite.scala +++ b/main/test/src/mill/util/ScriptTestSuite.scala @@ -15,10 +15,11 @@ abstract class ScriptTestSuite(fork: Boolean) extends TestSuite{ val stdOutErr = new PrintStream(new ByteArrayOutputStream()) val stdIn = new ByteArrayInputStream(Array()) val disableTicker = false + val debugLog = false lazy val runner = new mill.main.MainRunner( ammonite.main.Cli.Config(wd = wd), disableTicker, stdOutErr, stdOutErr, stdIn, None, Map.empty, - b => () + b => (), debugLog ) def eval(s: String*) = { if (!fork) runner.runScript(workspacePath / buildPath , s.toList) |