From d9894e8214321ce24f0d3c2223f1557663c729b7 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Fri, 15 Jul 2022 15:21:32 +1000 Subject: [PATCH] tests: Fix creation of test file in udp passt tests 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=/dev/urandom bs=1k count=5 > __TEMP_BIG__ && printf "\nEND_OF_TEST\n" >> __TEMP__ +host dd if=/dev/urandom bs=1k count=5 > __TEMP__ && printf "\nEND_OF_TEST\n" >> __TEMP__ host cat __TEMP__ | nc -u -q1 -N 127.0.0.1 10001 guestw hout HOST_MD5 md5sum __TEMP__ | cut -d' ' -f1