tests: Fix Permission denied on Fedora

On Fedora 26, start.sh fails with these error messages.

Failed to connect to wpa_supplicant global interface: /tmp/wpas-wlan0  error: Permission denied
Failed to connect to wpa_supplicant global interface: /tmp/wpas-wlan0  error: Permission denied
...

This is because Fedora 26 uses "wheel" group as administrative group.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
Masashi Honma 2017-12-31 05:35:28 +09:00 committed by Jouni Malinen
parent 4ab0f11b80
commit ede4f68e0a

View file

@ -58,6 +58,8 @@ fi
if groups | tr ' ' "\n" | grep -q ^admin$; then
GROUP=admin
elif groups | tr ' ' "\n" | grep -q ^wheel$; then
GROUP=wheel
else
GROUP=adm
fi