handle make errors ---> exit, don't run ctest

This commit is contained in:
Benoit Jacob 2009-11-16 09:38:44 -05:00
parent f7e73f1bf9
commit e09768e3bc
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,5 @@ then
exit 0
fi
./buildtests $*
# TODO when ctest 2.8 comes out, honor the jobs parameter
ctest -R $1
./buildtests $* && ctest -R $1

View File

@ -13,9 +13,11 @@ targets_to_make=`echo "$TESTSLIST" | grep "$1" | sed s/^/test_/g | xargs echo`
if [ $# == 1 ]
then
make $targets_to_make
exit $?
fi
if [ $# == 2 ]
then
make -j $2 $targets_to_make
exit $?
fi