Added precheck for hard-coded test server address and port
authorDan Fandrich <dan@coneharvesters.com>
Thu, 1 May 2008 00:20:01 +0000 (00:20 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 1 May 2008 00:20:01 +0000 (00:20 +0000)
tests/data/test1029

index c91feaf..11e1776 100644 (file)
@@ -30,6 +30,10 @@ HTTP Location: and 'redirect_url' check
  <command>
 http://%HOSTIP:%HTTPPORT/we/want/our/1029 -w '%{redirect_url}\n'
 </command>
+# The stdout 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' || '%HTTPPORT' ne '8990' );"
+</precheck>
 </client>
 
 # Verify data after the test has been "shot"