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/test646 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/data/test646') diff --git a/tests/data/test646 b/tests/data/test646 index a53c34090..4c4297c92 100644 --- a/tests/data/test646 +++ b/tests/data/test646 @@ -27,14 +27,14 @@ To: another body -smtp://%HOSTIP:%SMTPPORT/646 --mail-rcpt recipient@example.com --mail-from sender@example.com -F "=(;type=multipart/alternative" -F "= This is the html version;headers=X-test1: this is a header;type=text/html;headers=X-test2: this is another header " -F "=This is the plain text version;headers=@log/headers646" -F "=)" -F "=@log/test646.txt;headers=" +smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -F "=(;type=multipart/alternative" -F "= This is the html version;headers=X-test1: this is a header;type=text/html;headers=X-test2: this is another header " -F "=This is the plain text version;headers=@log/headers%TESTNUMBER" -F "=)" -F "=@log/test%TESTNUMBER.txt;headers=" - + This is an attached file. It may contain any type of data. - + # This line is a comment X-fileheader1: This is a header from a file @@ -52,7 +52,7 @@ s/^--------------------------[a-z0-9]*/------------------------------/ s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/ -EHLO 646 +EHLO %TESTNUMBER MAIL FROM: RCPT TO: DATA @@ -83,7 +83,7 @@ This is the plain text version -------------------------------- ------------------------------ -Content-Disposition: attachment; filename="test646.txt" +Content-Disposition: attachment; filename="test%TESTNUMBER.txt" X-fileheader1: This is a header from a file X-fileheader2: This is #a folded header -- cgit v1.2.1