tests: Do not hide error return when using run-all.sh
authorJouni Malinen <j@w1.fi>
Sat, 9 Mar 2013 21:29:22 +0000 (23:29 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 9 Mar 2013 21:29:22 +0000 (23:29 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/run-all.sh

index 9893603..51f34cf 100755 (executable)
@@ -1,5 +1,9 @@
 #!/bin/sh
 
+errors=0
 ./start-p2p.sh
-./run-p2p-tests.py
+./run-p2p-tests.py || errors=1
 ./stop-wifi.sh
+if [ $errors -gt 0 ]; then
+    exit 1
+fi