Only limit the number of failures reported by testrunner status if using

VT100 cursor movement.  For a straight-up "status" command, show everything.

FossilOrigin-Name: 791237e0f4b67f0197ae11e966554edeade0c443289d2ade00470d23bf5e8ec8
This commit is contained in:
drh
2024-08-28 10:36:18 +00:00
parent 4a90f81a6d
commit 242e064978
3 changed files with 14 additions and 10 deletions
+6 -6
View File
@@ -1,5 +1,5 @@
C In\sthe\stestrunner\sstatus\sdisplay,\slimit\sthe\snumber\sof\sreported\sfailed\sjobs\nto\savoid\soverflowing\sthe\sterminal\swhen\sthere\sare\smany\sfailures.
D 2024-08-28T10:25:44.140
C Only\slimit\sthe\snumber\sof\sfailures\sreported\sby\stestrunner\sstatus\sif\susing\nVT100\scursor\smovement.\s\sFor\sa\sstraight-up\s"status"\scommand,\sshow\severything.
D 2024-08-28T10:36:18.262
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@@ -1714,7 +1714,7 @@ F test/temptable2.test 76821347810ecc88203e6ef0dd6897b6036ac788e9dd3e6b04fd4d163
F test/temptable3.test d11a0974e52b347e45ee54ef1923c91ed91e4637
F test/temptrigger.test 38f0ca479b1822d3117069e014daabcaacefffcc
F test/tester.tcl 2c203a2dd664298f239f0ec3ce22fbc65b5f021c1e09edbae8452af8a694e052
F test/testrunner.tcl c3f6e70f02bc0257d2d66ac1fff7d26d76b1c4fcdd5e4b4d90faf2a126623587
F test/testrunner.tcl cfe0f1dd8ce1da41ebc2238eabd2f9562e48162505eb6c4495eb9221e00a0c93
F test/testrunner_data.tcl f1cbff53fe42087cac3d43ca02f9574bd212c842307442e2b6fff2183f5ccbfe
F test/thread001.test a0985c117eab62c0c65526e9fa5d1360dd1cac5b03bde223902763274ce21899
F test/thread002.test c24c83408e35ba5a952a3638b7ac03ccdf1ce4409289c54a050ac4c5f1de7502
@@ -2211,8 +2211,8 @@ F vsixtest/vsixtest.tcl 6195aba1f12a5e10efc2b8c0009532167be5e301abe5b31385638080
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
P 8c73d54fd1e250fcd7f30741cfbd169af9aaecc2096c0c8a9486abaa064d69af
R c92552ba898da06e8effb71b87a3f9eb
P ffeaa4d5d73871cbdf1ef70b9845d921ebdb96e964d232661a5048cab7d744ed
R 8085922607334118c1b73e04568394c4
U drh
Z 9fabe008bd6ec45672f53069445b0fd8
Z 328eda1f95b36f3977ef4f1d3bbc3083
# Remove this line to create a well-formed Fossil manifest.
+1 -1
View File
@@ -1 +1 @@
ffeaa4d5d73871cbdf1ef70b9845d921ebdb96e964d232661a5048cab7d744ed
791237e0f4b67f0197ae11e966554edeade0c443289d2ade00470d23bf5e8ec8
+7 -3
View File
@@ -497,9 +497,13 @@ proc show_status {db cls} {
# $mxtoshow tries to limit the number of "Failures:" reported so that
# the status display does not overflow a 24-line terminal. But it will
# always show at least the most recent 4 failures, even if an overflow
# is needed.
set mxtoshow [expr {16-$nrun}]
if {$mxtoshow<4} {set mxtoshow 4}
# is needed. But, do not limit the length of the output of $cls is false.
if {$cls} {
set mxtoshow [expr {16-$nrun}]
if {$mxtoshow<4} {set mxtoshow 4}
} else {
set mxtoshow 9999999
}
$db eval {
SELECT * FROM jobs WHERE state='failed' ORDER BY endtime DESC