aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-07-15 15:21:32 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-07-22 19:41:42 +0200
commitd9894e8214321ce24f0d3c2223f1557663c729b7 (patch)
tree827f3134d2a7c861bf48506869fd424c2c52ffee
parent70fcba542e9f5fc52a322a935ae392359a687890 (diff)
downloadpasst-d9894e8214321ce24f0d3c2223f1557663c729b7.tar
passt-d9894e8214321ce24f0d3c2223f1557663c729b7.tar.gz
passt-d9894e8214321ce24f0d3c2223f1557663c729b7.tar.bz2
passt-d9894e8214321ce24f0d3c2223f1557663c729b7.tar.lz
passt-d9894e8214321ce24f0d3c2223f1557663c729b7.tar.xz
passt-d9894e8214321ce24f0d3c2223f1557663c729b7.tar.zst
passt-d9894e8214321ce24f0d3c2223f1557663c729b7.zip
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 <david@gibson.dropbear.id.au>
-rw-r--r--test/udp/passt2
1 files changed, 1 insertions, 1 deletions
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