From e8e238c43619383f67a38e0e430608f6b17f3adc Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Wed, 30 Oct 2013 23:16:05 +0100 Subject: [PATCH] hwsim tests: Silence chown warnings 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 --- 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 4b425481f..fbd3cfe74 100755 --- a/tests/hwsim/start.sh +++ b/tests/hwsim/start.sh @@ -65,9 +65,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