mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
runtests: log the required minimum number of tests in CI
For Test Clutch.
If set (via env or tflags), include the minimum number of tests required
in runtests' log output:
```
* Min tests: 1750
```
Follow-up to 3f1cd809ee #19942
Closes #19987
This commit is contained in:
parent
5431b3dd6b
commit
74a2828279
@ -885,6 +885,9 @@ sub checksystemfeatures {
|
||||
if(system("diff $TESTDIR/DISABLED $TESTDIR/DISABLED 2>$dev_null") != 0) {
|
||||
logmsg "* diff: missing\n";
|
||||
}
|
||||
if($mintotal) {
|
||||
logmsg "* Min tests: $mintotal\n";
|
||||
}
|
||||
}
|
||||
|
||||
#######################################################################
|
||||
@ -2711,6 +2714,10 @@ if(!$jobs) {
|
||||
setlogfunc(\&logmsg);
|
||||
}
|
||||
|
||||
if(!$mintotal && $ENV{"CURL_TEST_MIN"}) {
|
||||
$mintotal = $ENV{"CURL_TEST_MIN"};
|
||||
}
|
||||
|
||||
#######################################################################
|
||||
# Output curl version and host info being tested
|
||||
#
|
||||
@ -3332,9 +3339,6 @@ else {
|
||||
}
|
||||
}
|
||||
|
||||
if(!$mintotal && $ENV{"CURL_TEST_MIN"}) {
|
||||
$mintotal = $ENV{"CURL_TEST_MIN"};
|
||||
}
|
||||
if($mintotal) {
|
||||
if($total < $mintotal) {
|
||||
logmsg "TESTFAIL: number of tests run was below the minimum of: $mintotal\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user