Fossil SCM
Reduce output when testing in -quiet mode. Output is now limited to test failures (including knownBug) and skipped tests when there are uncommitted changes.
Commit
9c23c50defa0559551d47c69babd0fcdfb6ca42a31ddd6f74aab307f7a02e813
Parent
41c35fb6e2cea4c…
2 files changed
+3
-1
+12
-4
+3
-1
| --- test/merge5.test | ||
| +++ test/merge5.test | ||
| @@ -16,11 +16,13 @@ | ||
| 16 | 16 | ############################################################################ |
| 17 | 17 | # |
| 18 | 18 | # Tests of the "merge" command |
| 19 | 19 | # |
| 20 | 20 | |
| 21 | -puts "Skipping Merge5 tests" | |
| 21 | +if {! $::QUIET} { | |
| 22 | + puts "Skipping Merge5 tests" | |
| 23 | +} | |
| 22 | 24 | protOut { |
| 23 | 25 | fossil sqlite3 --no-repository reacts badly to SQL dumped from |
| 24 | 26 | repositories created from fossil older than version 2.0. |
| 25 | 27 | } |
| 26 | 28 | test merge5-sqlite3-issue false knownBug |
| 27 | 29 |
| --- test/merge5.test | |
| +++ test/merge5.test | |
| @@ -16,11 +16,13 @@ | |
| 16 | ############################################################################ |
| 17 | # |
| 18 | # Tests of the "merge" command |
| 19 | # |
| 20 | |
| 21 | puts "Skipping Merge5 tests" |
| 22 | protOut { |
| 23 | fossil sqlite3 --no-repository reacts badly to SQL dumped from |
| 24 | repositories created from fossil older than version 2.0. |
| 25 | } |
| 26 | test merge5-sqlite3-issue false knownBug |
| 27 |
| --- test/merge5.test | |
| +++ test/merge5.test | |
| @@ -16,11 +16,13 @@ | |
| 16 | ############################################################################ |
| 17 | # |
| 18 | # Tests of the "merge" command |
| 19 | # |
| 20 | |
| 21 | if {! $::QUIET} { |
| 22 | puts "Skipping Merge5 tests" |
| 23 | } |
| 24 | protOut { |
| 25 | fossil sqlite3 --no-repository reacts badly to SQL dumped from |
| 26 | repositories created from fossil older than version 2.0. |
| 27 | } |
| 28 | test merge5-sqlite3-issue false knownBug |
| 29 |
+12
-4
| --- test/unversioned.test | ||
| +++ test/unversioned.test | ||
| @@ -322,21 +322,25 @@ | ||
| 322 | 322 | fossil user capabilities uvtester oy |
| 323 | 323 | |
| 324 | 324 | ############################################################################### |
| 325 | 325 | |
| 326 | 326 | foreach {pid port outTmpFile} [test_start_server $repository stopArg] {} |
| 327 | -puts [appendArgs "Started Fossil server, pid \"" $pid \" ", port \"" $port \".] | |
| 327 | +if {! $::QUIET} { | |
| 328 | + puts [appendArgs "Started Fossil server, pid \"" $pid \" ", port \"" $port \".] | |
| 329 | +} | |
| 328 | 330 | set remote [appendArgs http://uvtester: $password @localhost: $port /] |
| 329 | 331 | |
| 330 | 332 | ############################################################################### |
| 331 | 333 | |
| 332 | 334 | set clientDir [file join $tempPath [appendArgs \ |
| 333 | 335 | uvtest_ [string trim [clock seconds] -] _ [getSeqNo]]] |
| 334 | 336 | |
| 335 | 337 | set savedPwd [pwd] |
| 336 | 338 | file mkdir $clientDir; cd $clientDir |
| 337 | -puts [appendArgs "Now in client directory \"" [pwd] \".] | |
| 339 | +if {! $::QUIET} { | |
| 340 | + puts [appendArgs "Now in client directory \"" [pwd] \".] | |
| 341 | +} | |
| 338 | 342 | write_file unversioned-client1.txt "This is unversioned client file #1." |
| 339 | 343 | |
| 340 | 344 | ############################################################################### |
| 341 | 345 | |
| 342 | 346 | fossil clone --save-http-password $remote uvrepo.fossil |
| @@ -436,20 +440,24 @@ | ||
| 436 | 440 | |
| 437 | 441 | ############################################################################### |
| 438 | 442 | |
| 439 | 443 | cd $savedPwd; unset savedPwd |
| 440 | 444 | file delete -force $clientDir |
| 441 | -puts [appendArgs "Now in server directory \"" [pwd] \".] | |
| 445 | +if {! $::QUIET} { | |
| 446 | + puts [appendArgs "Now in server directory \"" [pwd] \".] | |
| 447 | +} | |
| 442 | 448 | |
| 443 | 449 | ############################################################################### |
| 444 | 450 | |
| 445 | 451 | set stopped [test_stop_server $stopArg $pid $outTmpFile] |
| 446 | 452 | |
| 447 | -puts [appendArgs \ | |
| 453 | +if {! $::QUIET} { | |
| 454 | + puts [appendArgs \ | |
| 448 | 455 | [expr {$stopped ? "Stopped" : "Could not stop"}] \ |
| 449 | 456 | " Fossil server, pid \"" $pid "\", using argument \"" \ |
| 450 | 457 | $stopArg \".] |
| 458 | +} | |
| 451 | 459 | |
| 452 | 460 | ############################################################################### |
| 453 | 461 | |
| 454 | 462 | fossil unversioned list |
| 455 | 463 | test unversioned-57 {[regexp \ |
| 456 | 464 |
| --- test/unversioned.test | |
| +++ test/unversioned.test | |
| @@ -322,21 +322,25 @@ | |
| 322 | fossil user capabilities uvtester oy |
| 323 | |
| 324 | ############################################################################### |
| 325 | |
| 326 | foreach {pid port outTmpFile} [test_start_server $repository stopArg] {} |
| 327 | puts [appendArgs "Started Fossil server, pid \"" $pid \" ", port \"" $port \".] |
| 328 | set remote [appendArgs http://uvtester: $password @localhost: $port /] |
| 329 | |
| 330 | ############################################################################### |
| 331 | |
| 332 | set clientDir [file join $tempPath [appendArgs \ |
| 333 | uvtest_ [string trim [clock seconds] -] _ [getSeqNo]]] |
| 334 | |
| 335 | set savedPwd [pwd] |
| 336 | file mkdir $clientDir; cd $clientDir |
| 337 | puts [appendArgs "Now in client directory \"" [pwd] \".] |
| 338 | write_file unversioned-client1.txt "This is unversioned client file #1." |
| 339 | |
| 340 | ############################################################################### |
| 341 | |
| 342 | fossil clone --save-http-password $remote uvrepo.fossil |
| @@ -436,20 +440,24 @@ | |
| 436 | |
| 437 | ############################################################################### |
| 438 | |
| 439 | cd $savedPwd; unset savedPwd |
| 440 | file delete -force $clientDir |
| 441 | puts [appendArgs "Now in server directory \"" [pwd] \".] |
| 442 | |
| 443 | ############################################################################### |
| 444 | |
| 445 | set stopped [test_stop_server $stopArg $pid $outTmpFile] |
| 446 | |
| 447 | puts [appendArgs \ |
| 448 | [expr {$stopped ? "Stopped" : "Could not stop"}] \ |
| 449 | " Fossil server, pid \"" $pid "\", using argument \"" \ |
| 450 | $stopArg \".] |
| 451 | |
| 452 | ############################################################################### |
| 453 | |
| 454 | fossil unversioned list |
| 455 | test unversioned-57 {[regexp \ |
| 456 |
| --- test/unversioned.test | |
| +++ test/unversioned.test | |
| @@ -322,21 +322,25 @@ | |
| 322 | fossil user capabilities uvtester oy |
| 323 | |
| 324 | ############################################################################### |
| 325 | |
| 326 | foreach {pid port outTmpFile} [test_start_server $repository stopArg] {} |
| 327 | if {! $::QUIET} { |
| 328 | puts [appendArgs "Started Fossil server, pid \"" $pid \" ", port \"" $port \".] |
| 329 | } |
| 330 | set remote [appendArgs http://uvtester: $password @localhost: $port /] |
| 331 | |
| 332 | ############################################################################### |
| 333 | |
| 334 | set clientDir [file join $tempPath [appendArgs \ |
| 335 | uvtest_ [string trim [clock seconds] -] _ [getSeqNo]]] |
| 336 | |
| 337 | set savedPwd [pwd] |
| 338 | file mkdir $clientDir; cd $clientDir |
| 339 | if {! $::QUIET} { |
| 340 | puts [appendArgs "Now in client directory \"" [pwd] \".] |
| 341 | } |
| 342 | write_file unversioned-client1.txt "This is unversioned client file #1." |
| 343 | |
| 344 | ############################################################################### |
| 345 | |
| 346 | fossil clone --save-http-password $remote uvrepo.fossil |
| @@ -436,20 +440,24 @@ | |
| 440 | |
| 441 | ############################################################################### |
| 442 | |
| 443 | cd $savedPwd; unset savedPwd |
| 444 | file delete -force $clientDir |
| 445 | if {! $::QUIET} { |
| 446 | puts [appendArgs "Now in server directory \"" [pwd] \".] |
| 447 | } |
| 448 | |
| 449 | ############################################################################### |
| 450 | |
| 451 | set stopped [test_stop_server $stopArg $pid $outTmpFile] |
| 452 | |
| 453 | if {! $::QUIET} { |
| 454 | puts [appendArgs \ |
| 455 | [expr {$stopped ? "Stopped" : "Could not stop"}] \ |
| 456 | " Fossil server, pid \"" $pid "\", using argument \"" \ |
| 457 | $stopArg \".] |
| 458 | } |
| 459 | |
| 460 | ############################################################################### |
| 461 | |
| 462 | fossil unversioned list |
| 463 | test unversioned-57 {[regexp \ |
| 464 |