summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
authorKarel Zak2009-01-19 22:36:27 +0100
committerKarel Zak2009-02-11 23:30:14 +0100
commita02f320d4bf6a09d1c3b904db01a4188bbaee562 (patch)
treef5ae3572ed8e87e1fabaf5205edcf5f77d22cedd /tests/run.sh
parenttests: add ./run.sh <component> (diff)
downloadkernel-qcow2-util-linux-a02f320d4bf6a09d1c3b904db01a4188bbaee562.tar.gz
kernel-qcow2-util-linux-a02f320d4bf6a09d1c3b904db01a4188bbaee562.tar.xz
kernel-qcow2-util-linux-a02f320d4bf6a09d1c3b904db01a4188bbaee562.zip
tests: fix TS_* paths
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh10
1 files changed, 5 insertions, 5 deletions
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 [<component>]"
@@ -44,7 +44,7 @@ echo
res=0
count=0
for ts in $comps; do
- ./$ts "$1"
+ $ts "$1"
res=$(( $res + $? ))
count=$(( $count + 1 ))
done