Browse Source

hwsim tests: Pass run-all arguments on

Allow run-all to pass on extra arguments from the command
line that aren't built by the script itself.

Signed-hostap: Johannes Berg <johannes.berg@intel.com>
Johannes Berg 11 years ago
parent
commit
f62ec3696d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/hwsim/run-all.sh

+ 2 - 1
tests/hwsim/run-all.sh

@@ -44,6 +44,7 @@ fi
 if [ "x$1" = "xtrace" ] ; then
 if [ "x$1" = "xtrace" ] ; then
 	TRACE=trace
 	TRACE=trace
 	SUFFIX=$SUFFIX-trace
 	SUFFIX=$SUFFIX-trace
+	shift
 else
 else
 	unset TRACE
 	unset TRACE
 fi
 fi
@@ -54,7 +55,7 @@ if ! ./start.sh $CONCURRENT $VALGRIND $TRACE; then
 fi
 fi
 DATE=`ls -1tr $LOGDIR | tail -1 | cut -f1 -d-`
 DATE=`ls -1tr $LOGDIR | tail -1 | cut -f1 -d-`
 rm $LOGDIR/last-debug 2>/dev/null
 rm $LOGDIR/last-debug 2>/dev/null
-RUNTESTS="./run-tests.py -l $LOGDIR/$DATE-run $DB -e $LOGDIR/$DATE-failed -r $LOGDIR/results.txt $CONCURRENT_TESTS"
+RUNTESTS="./run-tests.py -l $LOGDIR/$DATE-run $DB -e $LOGDIR/$DATE-failed -r $LOGDIR/results.txt $CONCURRENT_TESTS $@"
 
 
 if [ "$TRACE" != "" ] ; then
 if [ "$TRACE" != "" ] ; then
 	sudo trace-cmd record -o $LOGDIR/$DATE-trace.dat -e mac80211 -e cfg80211 su $USER -c $RUNTESTS || errors=1
 	sudo trace-cmd record -o $LOGDIR/$DATE-trace.dat -e mac80211 -e cfg80211 su $USER -c $RUNTESTS || errors=1