aboutsummaryrefslogtreecommitdiff
path: root/src/test/runtests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/runtests.sh')
-rwxr-xr-xsrc/test/runtests.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/runtests.sh b/src/test/runtests.sh
index 40fe1511..076bd754 100755
--- a/src/test/runtests.sh
+++ b/src/test/runtests.sh
@@ -68,10 +68,9 @@ ret=$(($ret + $?))
einfo "Running unit tests"
eindent
-cd units
-for u in *; do
+for u in units/*; do
[ -x "${u}" -a -f "${u}" ] || continue
- ebegin "${u}"
+ ebegin "$(basename "${u}")"
./"${u}"
eend $?
ret=$(($ret + $?))