Parcourir la source

tests: Silence chmod errors

These will fail if used on a readonly file system and are only needed
for valgrind runs.

Signed-hostap: Jouni Malinen <j@w1.fi>
Jouni Malinen il y a 11 ans
Parent
commit
3b464a3c21
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      tests/hwsim/start.sh

+ 2 - 2
tests/hwsim/start.sh

@@ -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