]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1245: make it work with dynamic FTP server port 5247/head
authorDaniel Stenberg <daniel@haxx.se>
Sat, 18 Apr 2020 21:48:43 +0000 (23:48 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 18 Apr 2020 21:57:57 +0000 (23:57 +0200)
tests/data/test1245

index 851d78d3bb28d6cf5b0a6972620bf4814658b109..8924bff972b792e7c23da8f555b0cff0cb8d628d 100644 (file)
@@ -18,7 +18,7 @@ HTTP/1.1 301 OK swsclose
 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
 Server: test-server/fake\r
 Content-Length: 0\r
-Location: ftp://127.0.0.1:8992/1245\r
+Location: ftp://%HOSTIP:%FTPPORT/1245\r
 Connection: close\r
 \r
 </data>
@@ -37,10 +37,6 @@ ftp
 <command>
 --location --proto +all,-ftp --proto-redir -all,+ftp http://%HOSTIP:%HTTPPORT/1245
 </command>
-# The data section doesn't do variable substitution, so we must assert this
-<precheck>
-perl -e "print 'Test requires default test server host and port' if ( '%HOSTIP' ne '127.0.0.1' || '%FTPPORT' ne '8992' );"
-</precheck>
 </client>
 
 #