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 9
9
package scala .tools
10
10
package partest
11
11
12
- import scala .util . Properties .setProp
12
+ import scala .tools . nsc . Properties .propOrFalse
13
13
import scala .tools .ant .sabbus .CompilationPathProperty
14
14
import java .lang .reflect .Method
15
15
import org .apache .tools .ant .Task
@@ -112,7 +112,7 @@ class PartestTask extends Task with CompilationPathProperty with ScalaTask {
112
112
}
113
113
114
114
override def execute () {
115
- if (debug || sys.props.contains (" partest.debug" )) {
115
+ if (debug || propOrFalse (" partest.debug" )) {
116
116
NestUI .setDebug()
117
117
}
118
118
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ package partest
8
8
package nest
9
9
10
10
import utils .Properties ._
11
- import scala .tools .nsc .Properties .{ versionMsg , setProp }
11
+ import scala .tools .nsc .Properties .{ versionMsg , propOrFalse , setProp }
12
12
import scala .collection .{ mutable , immutable }
13
13
import TestKinds ._
14
14
import scala .reflect .internal .util .Collections .distinctBy
@@ -93,9 +93,9 @@ class ConsoleRunner(argstr: String) extends {
93
93
}
94
94
95
95
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()
99
99
if (optShowDiff) NestUI .setDiffOnFail()
100
100
101
101
// Early return on no args, version, or invalid args
You can’t perform that action at this time.
0 commit comments