[PATCH 2/2] hwsim tests: silence chown warnings

Johannes Berg johannes
Thu Oct 31 00:48:43 PDT 2013


From: Johannes Berg <johannes.berg at intel.com>

If running in a VM with the logs going to a host filesystem
chown isn't actually possible, silence any warnings from it.

Signed-hostap: Johannes Berg <johannes.berg at intel.com>
---
 tests/hwsim/start.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh
index 8dff6f7..c67b9ca 100755
--- a/tests/hwsim/start.sh
+++ b/tests/hwsim/start.sh
@@ -66,9 +66,9 @@ done
 sudo $VALGRIND_HAPD $HAPD -ddKt$TRACE -g /var/run/hostapd-global -G $GROUP -ddKt > $LOGDIR/hostapd &
 
 sleep 1
-sudo chown $USER $LOGDIR/hwsim0.dump
+sudo chown -f $USER $LOGDIR/hwsim0.dump
 if [ "x$VALGRIND" = "xy" ]; then
-    sudo chown $USER $LOGDIR/*valgrind*
+    sudo chown -f $USER $LOGDIR/*valgrind*
 fi
 
 if [ -x $HLR_AUC_GW ]; then
-- 
1.8.4.rc3




More information about the Hostap mailing list