]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1028: make it run on dynamic FTP server port
authorDaniel Stenberg <daniel@haxx.se>
Sat, 18 Apr 2020 21:46:29 +0000 (23:46 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 18 Apr 2020 21:57:56 +0000 (23:57 +0200)
tests/data/test1028

index fd5162a7052894159cabc6b3af31db9f543f7395..b154372afd0732ae4c04d2371eff2746f74d421e 100644 (file)
@@ -19,7 +19,7 @@ Date: Thu, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake swsclose\r
 Content-Type: text/html\r
 Funny-head: yesyes\r
-Location: ftp://127.0.0.1:8992/10280002\r
+Location: ftp://%HOSTIP:%FTPPORT/10280002\r
 Content-Length: 0\r
 Connection: close\r
 \r
@@ -47,10 +47,6 @@ HTTP Location: redirect to FTP URL
  <command>
 http://%HOSTIP:%HTTPPORT/10280001 -L
 </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>
 
 #