From be1a40f26fdcfe3552149d5d7de6c5bb93454230 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 25 Aug 2013 21:43:21 +0300 Subject: [PATCH] tests: Redirect tcpdump output to a file Signed-hostap: Jouni Malinen --- tests/hwsim/start-p2p-concurrent.sh | 2 +- tests/hwsim/start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/start-p2p-concurrent.sh b/tests/hwsim/start-p2p-concurrent.sh index 8d14b2755..5f0608e36 100755 --- a/tests/hwsim/start-p2p-concurrent.sh +++ b/tests/hwsim/start-p2p-concurrent.sh @@ -20,7 +20,7 @@ mkdir -p $DIR/logs DATE=`date +%s` sudo ifconfig hwsim0 up sudo $WLANTEST -i hwsim0 -c -d > $DIR/logs/$DATE-hwsim0 & -sudo tcpdump -ni hwsim0 -s 2500 -w $DIR/logs/$DATE-hwsim0.dump & +sudo tcpdump -ni hwsim0 -s 2500 -w $DIR/logs/$DATE-hwsim0.dump > $DIR/logs/$DATE-tcpdump 2>&1 & if [ "x$VALGRIND" = "xy" ]; then for i in 0 1 2; do sudo valgrind --log-file=$DIR/logs/$DATE-valgrind-wlan$i $WPAS -g /tmp/wpas-wlan$i -Gadmin -Dnl80211 -iwlan$i -c $DIR/p2p$i.conf -N -Dnl80211 -ista$i -c $DIR/sta-dummy.conf -ddKt > $DIR/logs/$DATE-log$i & diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh index 3e96356d3..ebf0ae1f2 100755 --- a/tests/hwsim/start.sh +++ b/tests/hwsim/start.sh @@ -17,7 +17,7 @@ mkdir -p $DIR/logs DATE=`date +%s` sudo ifconfig hwsim0 up sudo $WLANTEST -i hwsim0 -c -d > $DIR/logs/$DATE-hwsim0 & -sudo tcpdump -ni hwsim0 -s 2500 -w $DIR/logs/$DATE-hwsim0.dump & +sudo tcpdump -ni hwsim0 -s 2500 -w $DIR/logs/$DATE-hwsim0.dump > $DIR/logs/$DATE-tcpdump 2>&1 & if [ "x$VALGRIND" = "xy" ]; then for i in 0 1 2; do chmod a+rx $WPAS