verify a part of the PORT line
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jan 2005 12:59:40 +0000 (12:59 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jan 2005 12:59:40 +0000 (12:59 +0000)
tests/data/test103

index 54d6d91..87a640d 100644 (file)
@@ -25,18 +25,18 @@ ftp://%HOSTIP:%FTPPORT/a/path/103 -P -
 
 # Verify data after the test has been "shot"
 <verify>
-<strip>
-^PORT .*
-^EPRT.*
-^LPRT.*
-</strip>
+<strippart>
+s/^LPRT.*[\n]//
+s/^EPRT.*[\n]//
+s/^(PORT 127,0,0,1,)([0-9,]+)/$1/
+</strippart>
 <protocol>
 USER anonymous\r
 PASS curl_by_daniel@haxx.se\r
 PWD\r
 CWD a\r
 CWD path\r
-PORT 127,0,0,1,246,33\r
+PORT 127,0,0,1,\r
 TYPE I\r
 SIZE 103\r
 RETR 103\r