[PATCH] tests: Fix Permission denied on Fedora

Masashi Honma masashi.honma at gmail.com
Fri Dec 29 15:30:53 PST 2017


Th wpa_cli and hostapd_cli looks fails on Fedora without sudo.

Signed-off-by: Masashi Honma <masashi.honma at gmail.com>
---
 tests/hwsim/start.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh
index fe46212..4d2d055 100755
--- a/tests/hwsim/start.sh
+++ b/tests/hwsim/start.sh
@@ -196,7 +196,7 @@ for i in 0 1 2 3 4 5 6 7 8 9; do
 done
 for i in 0 1 2; do
     for j in `seq 1 10`; do
-	if $WPACLI -g /tmp/wpas-wlan$i ping | grep -q PONG; then
+	if sudo $WPACLI -g /tmp/wpas-wlan$i ping | grep -q PONG; then
 	    break
 	fi
 	if [ $j = "10" ]; then
@@ -208,7 +208,7 @@ for i in 0 1 2; do
 done
 
 for j in `seq 1 10`; do
-    if $WPACLI -g /var/run/hostapd-global ping | grep -q PONG; then
+    if sudo $WPACLI -g /var/run/hostapd-global ping | grep -q PONG; then
 	break
     fi
     if [ $j = "10" ]; then
@@ -219,7 +219,7 @@ for j in `seq 1 10`; do
 done
 
 for j in `seq 1 10`; do
-    if $HAPDCLI -i as ping | grep -q PONG; then
+    if sudo $HAPDCLI -i as ping | grep -q PONG; then
 	break
     fi
     if [ $j = "10" ]; then
-- 
2.7.4




More information about the Hostap mailing list