tests: Silence chmod errors
authorJouni Malinen <j@w1.fi>
Wed, 30 Oct 2013 17:55:00 +0000 (19:55 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 30 Oct 2013 17:58:23 +0000 (19:58 +0200)
These will fail if used on a readonly file system and are only needed
for valgrind runs.

Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/start.sh

index 812ce9f..bc96807 100755 (executable)
@@ -33,8 +33,8 @@ if [ "$1" = "valgrind" ]; then
     VALGRIND=y
     VALGRIND_WPAS="valgrind --log-file=$LOGDIR/$DATE-valgrind-wlan%d"
     VALGRIND_HAPD="valgrind --log-file=$LOGDIR/$DATE-valgrind-hostapd"
-    chmod a+rx $WPAS
-    chmod a+rx $HAPD
+    chmod -f a+rx $WPAS
+    chmod -f a+rx $HAPD
     shift
 else
     unset VALGRIND