This repository was archived by the owner on Sep 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/main/scala/scala/tools/partest Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 99package scala .tools
1010package partest
1111
12- import scala .util . Properties .setProp
12+ import scala .tools . nsc . Properties .propOrFalse
1313import scala .tools .ant .sabbus .CompilationPathProperty
1414import java .lang .reflect .Method
1515import org .apache .tools .ant .Task
@@ -112,7 +112,7 @@ class PartestTask extends Task with CompilationPathProperty with ScalaTask {
112112 }
113113
114114 override def execute () {
115- if (debug || sys.props.contains (" partest.debug" )) {
115+ if (debug || propOrFalse (" partest.debug" )) {
116116 NestUI .setDebug()
117117 }
118118
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ package partest
88package nest
99
1010import utils .Properties ._
11- import scala .tools .nsc .Properties .{ versionMsg , setProp }
11+ import scala .tools .nsc .Properties .{ versionMsg , propOrFalse , setProp }
1212import scala .collection .{ mutable , immutable }
1313import TestKinds ._
1414import scala .reflect .internal .util .Collections .distinctBy
@@ -93,9 +93,9 @@ class ConsoleRunner(argstr: String) extends {
9393 }
9494
9595 def run (): Unit = {
96- if (optDebug) NestUI .setDebug()
97- if (optVerbose) NestUI .setVerbose()
98- if (optTerse) NestUI .setTerse()
96+ if (optDebug || propOrFalse( " partest.debug " ) ) NestUI .setDebug()
97+ if (optVerbose) NestUI .setVerbose()
98+ if (optTerse) NestUI .setTerse()
9999 if (optShowDiff) NestUI .setDiffOnFail()
100100
101101 // Early return on no args, version, or invalid args
You can’t perform that action at this time.
0 commit comments