From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson To: passt-dev@passt.top Subject: [PATCH 09/18] tests: Fix creation of test file in udp passt tests Date: Fri, 15 Jul 2022 15:21:32 +1000 Message-ID: <20220715052141.890703-10-david@gibson.dropbear.id.au> In-Reply-To: <20220715052141.890703-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0433189951278714822==" --===============0433189951278714822== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable In what looks like a copy-and-paste error from the TCP script, the udp/passt test script creates a test file called '__TEMP_BIG__', while the commands it use the variable __TEMP__. Correct this so that a) we actually transfer the data we created for the purpose and b) we don't leave a stale __TEMP_BIG__ file in the current directory. Signed-off-by: David Gibson --- test/udp/passt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/udp/passt b/test/udp/passt index 8a848bd..9598d0e 100644 --- a/test/udp/passt +++ b/test/udp/passt @@ -18,7 +18,7 @@ test UDP/IPv4: host to guest temp TEMP temp NC_PID guestb (nc -u -q1 -4 -l 10001 & echo $! > __NC_PID__) | tee test.bin | (grep= -qm1 "END_OF_TEST" && kill $(cat __NC_PID__)) -host dd if=3D/dev/urandom bs=3D1k count=3D5 > __TEMP_BIG__ && printf "\nEND_= OF_TEST\n" >> __TEMP__ +host dd if=3D/dev/urandom bs=3D1k count=3D5 > __TEMP__ && printf "\nEND_OF_T= EST\n" >> __TEMP__ host cat __TEMP__ | nc -u -q1 -N 127.0.0.1 10001 guestw hout HOST_MD5 md5sum __TEMP__ | cut -d' ' -f1 --=20 2.36.1 --===============0433189951278714822==--