mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 10:06:39 +00:00
Fix test runner's exit status
This commit is contained in:
@@ -22,9 +22,11 @@ abs_dirname() {
|
|||||||
testdir="$(abs_dirname "$0")"
|
testdir="$(abs_dirname "$0")"
|
||||||
testfiles="$(find "$testdir" -name "*-test.sh")"
|
testfiles="$(find "$testdir" -name "*-test.sh")"
|
||||||
|
|
||||||
|
RET=0
|
||||||
for testfile in $testfiles; do
|
for testfile in $testfiles; do
|
||||||
echo "running: ${testfile/#$(dirname "$testdir")\//}"
|
echo "running: ${testfile/#$(dirname "$testdir")\//}"
|
||||||
cd "$(dirname "$testfile")"
|
cd "$(dirname "$testfile")"
|
||||||
"$testfile"
|
"$testfile"
|
||||||
echo ""
|
if [ "$?" != "0" ]; then RET=1; fi
|
||||||
done
|
done
|
||||||
|
exit $RET
|
||||||
|
|||||||
Reference in New Issue
Block a user