From: Jouni Malinen Date: Wed, 22 Oct 2014 07:50:57 +0000 (+0300) Subject: tests: Run run-tests.py as root from run-all.sh X-Git-Tag: hostap_2_4~1277 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b2c227216c934e8422f28ab60309ad08e3c98b0;p=thirdparty%2Fhostap.git tests: Run run-tests.py as root from run-all.sh This will be needed to be able to control dynamic mac80211_hwsim operations like adding and removing a phy. In the past, it has been possible to start the main programs as root and then use non-root account for run-tests.py. However, there is already a large number of cases within the test scripts where sudo is needed. Moving that requirement to execution of run-tests.py allows those to be simplified as well. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/run-all.sh b/tests/hwsim/run-all.sh index 2598557ba..5ec3cf215 100755 --- a/tests/hwsim/run-all.sh +++ b/tests/hwsim/run-all.sh @@ -57,7 +57,7 @@ if ! ./start.sh $VALGRIND $TRACE $NUM_CH; then exit 1 fi -./run-tests.py -D --logdir "$LOGDIR" $TRACE_ARGS -q $DB $@ || errors=1 +sudo ./run-tests.py -D --logdir "$LOGDIR" $TRACE_ARGS -q $DB $@ || errors=1 ./stop.sh