tests: make precheck for HTTP on 127.0.0.1 into a feature

It can now be required easily in <features> instead of having perl code
in a <precheck>.

Closes #15039
This commit is contained in:
Daniel Stenberg 2024-09-25 13:53:17 +02:00
parent 56183c1d6f
commit 7aa2b4e01f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
25 changed files with 30 additions and 84 deletions

View file

@ -144,11 +144,9 @@ TZ=GMT
<command>
http://test31.curl:%HTTPPORT/we/want/%TESTNUMBER -b none -c %LOGDIR/jar%TESTNUMBER.txt --resolve test31.curl:%HTTPPORT:127.0.0.1
</command>
<precheck>
perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
</precheck>
<features>
cookies
local-http
</features>
</client>