Skip to content

Commit

Permalink
Merge pull request typelevel#17 from som-snytt/issue/missing-debug
Browse files Browse the repository at this point in the history
SI-8382 Restore partest.debug
  • Loading branch information
adriaanm committed Mar 10, 2014
2 parents 8a5fbb0 + 4754bc1 commit bcdbb90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/scala/tools/partest/PartestTask.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
package scala.tools
package partest

import scala.util.Properties.setProp
import scala.tools.nsc.Properties.propOrFalse
import scala.tools.ant.sabbus.CompilationPathProperty
import java.lang.reflect.Method
import org.apache.tools.ant.Task
Expand Down Expand Up @@ -112,7 +112,7 @@ class PartestTask extends Task with CompilationPathProperty with ScalaTask {
}

override def execute() {
if (debug || sys.props.contains("partest.debug")) {
if (debug || propOrFalse("partest.debug")) {
NestUI.setDebug()
}

Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/scala/tools/partest/nest/ConsoleRunner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package partest
package nest

import utils.Properties._
import scala.tools.nsc.Properties.{ versionMsg, setProp }
import scala.tools.nsc.Properties.{ versionMsg, propOrFalse, setProp }
import scala.collection.{ mutable, immutable }
import TestKinds._
import scala.reflect.internal.util.Collections.distinctBy
Expand Down Expand Up @@ -93,9 +93,9 @@ class ConsoleRunner(argstr: String) extends {
}

def run(): Unit = {
if (optDebug) NestUI.setDebug()
if (optVerbose) NestUI.setVerbose()
if (optTerse) NestUI.setTerse()
if (optDebug || propOrFalse("partest.debug")) NestUI.setDebug()
if (optVerbose) NestUI.setVerbose()
if (optTerse) NestUI.setTerse()
if (optShowDiff) NestUI.setDiffOnFail()

// Early return on no args, version, or invalid args
Expand Down

0 comments on commit bcdbb90

Please sign in to comment.