From: Jouni Malinen Date: Wed, 17 Mar 2021 21:36:52 +0000 (+0200) Subject: tests: Speed up tshark operations X-Git-Tag: hostap_2_10~383 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaf925df002b952e6b25b5d85cba01260896c4b2;p=thirdparty%2Fhostap.git tests: Speed up tshark operations Hide /usr/share/wireshark from hostfs to prevent tshark from loading all the data from there since that can take significant amount of time and is not really needed for the test cases. In addition, set HOME to point to local tmpfs to avoid unnecessary references through hostfs. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/vm/inside.sh b/tests/hwsim/vm/inside.sh index 6ccad4bec..9d4a933fe 100755 --- a/tests/hwsim/vm/inside.sh +++ b/tests/hwsim/vm/inside.sh @@ -15,11 +15,16 @@ mount sysfs -t sysfs /sys # needed for tracing mount debugfs -t debugfs /sys/kernel/debug +mkdir /tmp/wireshark-share +mount --bind /usr/share/wireshark /tmp/wireshark-share +mount tmpfs -t tmpfs /usr/share/wireshark + # for inside telnet mkdir /dev/pts mount devpts -t devpts /dev/pts export PATH=/usr/sbin:$PATH +export HOME=/tmp # reboot on any sort of crash sysctl kernel.panic_on_oops=1