]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hwsim tests: Pass run-all arguments on
authorJohannes Berg <johannes.berg@intel.com>
Wed, 30 Oct 2013 18:01:56 +0000 (19:01 +0100)
committerJouni Malinen <j@w1.fi>
Thu, 31 Oct 2013 08:29:05 +0000 (10:29 +0200)
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>

tests/hwsim/run-all.sh

index 2a3e365ab8999860b50e70f7562c1fdda422b40a..ecc70a1e3f7fbf1d5040d1f0530e7daef0627cfb 100755 (executable)
@@ -44,6 +44,7 @@ fi
 if [ "x$1" = "xtrace" ] ; then
        TRACE=trace
        SUFFIX=$SUFFIX-trace
+       shift
 else
        unset TRACE
 fi
@@ -54,7 +55,7 @@ if ! ./start.sh $CONCURRENT $VALGRIND $TRACE; then
 fi
 DATE=`ls -1tr $LOGDIR | tail -1 | cut -f1 -d-`
 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
        sudo trace-cmd record -o $LOGDIR/$DATE-trace.dat -e mac80211 -e cfg80211 su $USER -c $RUNTESTS || errors=1