File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed
src/main/scala/scala/tools/partest/nest Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,6 @@ 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()
99
- if (optShowDiff) NestUI .setDiffOnFail()
100
-
101
96
// Early return on no args, version, or invalid args
102
97
if (optVersion) return echo(versionMsg)
103
98
if (optHelp) return NestUI .usage()
@@ -184,7 +179,7 @@ class ConsoleRunner(argstr: String) extends {
184
179
issueSummaryReport()
185
180
System exit ( if (isSuccess) 0 else 1 )
186
181
}
187
-
182
+
188
183
run()
189
184
}
190
185
Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ trait ConsoleRunnerSpec extends Spec with Meta.StdOpts with Interpolation {
35
35
val optSourcePath = " srcpath" / " set (relative) path to test source files (ex.: --srcpath pending)" --|
36
36
37
37
heading(" Test output options:" )
38
- val optShowDiff = " show-diff" / " show diffs for failed tests" --?
39
- val optVerbose = " verbose" / " show verbose progress information" --?
40
- val optTerse = " terse" / " show terse progress information" --?
41
- val optDebug = " debug" / " enable debugging output" --?
38
+ val optShowDiff = " show-diff" / " show diffs for failed tests" --> NestUI .setDiffOnFail()
39
+ val optVerbose = " verbose" / " show verbose progress information" --> NestUI .setVerbose()
40
+ val optTerse = " terse" / " show terse progress information" --> NestUI .setTerse()
41
+ val optDebug = " debug" / " enable debugging output" --> NestUI .setDebug()
42
42
43
43
heading(" Other options:" )
44
44
val optVersion = " version" / " show Scala version and exit" --?
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ class Colors(enabled: => Boolean) {
28
28
object NestUI {
29
29
private val testNum = new java.util.concurrent.atomic.AtomicInteger (1 )
30
30
@ volatile private var testNumberFmt = " %3d"
31
- // @volatile private var testNumber = 1
32
31
private def testNumber = testNumberFmt format testNum.getAndIncrement()
33
32
def resetTestNumber (max : Int = - 1 ) {
34
33
testNum set 1
You can’t perform that action at this time.
0 commit comments