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 <jouni@codeaurora.org>
This commit is contained in:
parent
9d9b423065
commit
eaf925df00
1 changed files with 5 additions and 0 deletions
|
@ -15,11 +15,16 @@ mount sysfs -t sysfs /sys
|
||||||
# needed for tracing
|
# needed for tracing
|
||||||
mount debugfs -t debugfs /sys/kernel/debug
|
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
|
# for inside telnet
|
||||||
mkdir /dev/pts
|
mkdir /dev/pts
|
||||||
mount devpts -t devpts /dev/pts
|
mount devpts -t devpts /dev/pts
|
||||||
|
|
||||||
export PATH=/usr/sbin:$PATH
|
export PATH=/usr/sbin:$PATH
|
||||||
|
export HOME=/tmp
|
||||||
|
|
||||||
# reboot on any sort of crash
|
# reboot on any sort of crash
|
||||||
sysctl kernel.panic_on_oops=1
|
sysctl kernel.panic_on_oops=1
|
||||||
|
|
Loading…
Reference in a new issue