From e2b4df7b5ed8ed86c900820fc4b2c30b9cb53f51 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 12 Mar 2021 17:38:26 +0100 Subject: tests: use %TESTNUMBER instead of fixed number This makes the tests easier to copy and relocate to other test numbers without having to update content. Closes #6738 --- tests/data/test1360 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'tests/data/test1360') diff --git a/tests/data/test1360 b/tests/data/test1360 index f0aac4bb4..3f7b43535 100644 --- a/tests/data/test1360 +++ b/tests/data/test1360 @@ -9,7 +9,7 @@ RETR # Server-side -# file1360 contents... +# file%TESTNUMBER contents... HTTP/1.1 200 OK Date: Tue, 09 Nov 2010 14:49:00 GMT @@ -17,7 +17,7 @@ Server: test-server/fake Content-Length: 6 Connection: close Content-Type: text/html -Content-Disposition: filename=name1360; charset=funny; option=strange +Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange MOOOO @@ -40,10 +40,10 @@ FTP download, file with C-D inside, using -O -J -D stdout CURL_TESTDIR=%PWD/log -ftp://%HOSTIP:%FTPPORT/path/file1360 -O -J -D - +ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -J -D - -perl %SRCDIR/libtest/notexists.pl log/name1360 +perl %SRCDIR/libtest/notexists.pl log/name%TESTNUMBER @@ -56,24 +56,24 @@ PWD CWD path EPSV TYPE I -SIZE file1360 -RETR file1360 +SIZE file%TESTNUMBER +RETR file%TESTNUMBER QUIT - + HTTP/1.1 200 OK Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/fake Content-Length: 6 Connection: close Content-Type: text/html -Content-Disposition: filename=name1360; charset=funny; option=strange +Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange MOOOO - + 220- _ _ ____ _ 220- ___| | | | _ \| | 220- / __| | | | |_) | | @@ -86,7 +86,7 @@ MOOOO 229 Entering Passive Mode (stripped) 200 I modify TYPE as you wanted 213 214 -150 Binary data connection for 1360 () (214 bytes). +150 Binary data connection for %TESTNUMBER () (214 bytes). 226 File transfer complete -- cgit v1.2.1