Module: tools Branch: master Commit: 1bfc60e41a32a3d4dc8f740a31805514d0663c03 URL: https://source.winehq.org/git/tools.git/?a=commit;h=1bfc60e41a32a3d4dc8f740a...
Author: Francois Gouget fgouget@codeweavers.com Date: Mon Aug 30 19:48:37 2021 +0200
winetest/dissect: Reject reports with too few test results.
The script does not know how many tests to expect but it can reasonably expect that $maxfailedtests is only a small fraction of the expected number of tests.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
winetest/dissect | 1 + 1 file changed, 1 insertion(+)
diff --git a/winetest/dissect b/winetest/dissect index 43f7790..fe88cb9 100755 --- a/winetest/dissect +++ b/winetest/dissect @@ -903,6 +903,7 @@ close_test_unit(1); close SUM or mydie "error writing to '$tmpdir/summary.txt': $!"; close IN;
+mydie "too few tests run (", @boxes-1, ")" if @boxes <= $maxfailedtests * 5; mydie "report reached file size limit (runaway test?)" if -s $report >= $maxfilesize;