From a02f320d4bf6a09d1c3b904db01a4188bbaee562 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 19 Jan 2009 22:36:27 +0100 Subject: tests: fix TS_* paths Signed-off-by: Karel Zak --- tests/run.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/run.sh') diff --git a/tests/run.sh b/tests/run.sh index 8a2c7f245..f4a6e7bfe 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -15,13 +15,13 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # -. functions.sh -comps=$(find ts/ -type f -perm /a+x -regex "[^\.~]*" | sort) +TS_TOPDIR=$(cd $(dirname $0) && pwd) +comps=$(find $TS_TOPDIR/ts/ -type f -perm /a+x -regex "[^\.~]*" | sort) if [ -n "$1" ]; then - if [ -d "ts/$1" ]; then - comps=$(find ts/$1 -type f -perm /a+x -regex "[^\.~]*" | sort) + if [ -d "$TS_TOPDIR/ts/$1" ]; then + comps=$(find $TS_TOPDIR/ts/$1 -type f -perm /a+x -regex "[^\.~]*" | sort) else echo echo "usage: $0 []" @@ -44,7 +44,7 @@ echo res=0 count=0 for ts in $comps; do - ./$ts "$1" + $ts "$1" res=$(( $res + $? )) count=$(( $count + 1 )) done -- cgit v1.2.3-55-g7522