Skip to content

Commit cd7af0d

Browse files
author
wonder
committed
Improved script a bit, now it works for me.
git-svn-id: http://svn.osgeo.org/qgis/trunk@5260 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent c3b8ff3 commit cd7af0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/src/runtests.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#set -x
3-
DIRS=`ls -1F |grep / |sed 's/\///g'`
3+
DIRS=`ls -1F | grep '/$'`
44

55
TOTALDIRS=0
66
TOTALEXES=0
@@ -13,10 +13,10 @@ do
1313
TOTALDIRFAILED=0
1414
TOTALDIRPASSED=0
1515
TOTALDIRSKIPPED=0
16-
LIST=`ls -lah $DIR |grep rwxr-xr-x |grep -v ^d |grep -v pl$ |grep -v ~$ |grep -v .sh$ |awk '{print $8}'|awk '$1=$1' RS=`
16+
LIST=`find $DIR -type f -perm +111 -maxdepth 1 | egrep -v '(\.sh$|\.pl$)'`
1717
for FILE in $LIST
1818
do
19-
RESULT=`$DIR/${FILE} | tail -2 |head -1` #TODO maybe just grep for 'Totals'
19+
RESULT=`${FILE} | grep '^Totals:'`
2020
PASSED=`echo ${RESULT} | awk '{print $2}'`
2121
FAILED=`echo ${RESULT} | awk '{print $4}'`
2222
SKIPPED=`echo ${RESULT} | awk '{print $6}'`

0 commit comments

Comments
 (0)