diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-03-12 17:38:26 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-03-19 15:57:21 +0100 |
commit | e2b4df7b5ed8ed86c900820fc4b2c30b9cb53f51 (patch) | |
tree | 3d15e2bf1fa76e0d951d64edeccca6b70636e0ed /tests/data/test1383 | |
parent | 453ad35d15adf06bd1a141fb026214bc599b067f (diff) | |
download | curl-e2b4df7b5ed8ed86c900820fc4b2c30b9cb53f51.tar.gz |
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
Diffstat (limited to 'tests/data/test1383')
-rw-r--r-- | tests/data/test1383 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/data/test1383 b/tests/data/test1383 index 0694a2240..34f3cf6bc 100644 --- a/tests/data/test1383 +++ b/tests/data/test1383 @@ -23,10 +23,10 @@ ftp FTP DL, file without C-D inside, using -o fname -i -D file </name> <command option="no-output,no-include"> -ftp://%HOSTIP:%FTPPORT/path/file1383 -o log/download1383 -i -D log/heads1383 +ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o log/download%TESTNUMBER -i -D log/heads%TESTNUMBER </command> <postcheck> -perl %SRCDIR/libtest/notexists.pl log/file1383 +perl %SRCDIR/libtest/notexists.pl log/file%TESTNUMBER </postcheck> </client> @@ -39,17 +39,17 @@ PWD CWD path
EPSV
TYPE I
-SIZE file1383
-RETR file1383
+SIZE file%TESTNUMBER
+RETR file%TESTNUMBER
QUIT
</protocol> -<file1 name="log/download1383"> +<file1 name="log/download%TESTNUMBER"> fooo mooo </file1> -<file2 name="log/heads1383"> +<file2 name="log/heads%TESTNUMBER"> 220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
@@ -62,14 +62,14 @@ mooo 229 Entering Passive Mode (stripped) 200 I modify TYPE as you wanted
213 10
-150 Binary data connection for 1383 () (10 bytes).
+150 Binary data connection for %TESTNUMBER () (10 bytes).
226 File transfer complete
</file2> <stripfile2> s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ </stripfile2> -<file3 name="log/stdout1383"> +<file3 name="log/stdout%TESTNUMBER"> </file3> </verify> |