diff --git a/src/gui/unit_tests/unit_tests.sh b/src/gui/unit_tests/unit_tests.sh index 9d0244c59..e57599f5c 100755 --- a/src/gui/unit_tests/unit_tests.sh +++ b/src/gui/unit_tests/unit_tests.sh @@ -10,7 +10,7 @@ for directory in `find . -maxdepth 1 -type d -regex '\./[A-Za-z0-9\-\_]*'` do cd $directory [ ! -e Makefile ] && qmake -spec $QMAKESPEC - $commands + $commands || exit 1 cd - done diff --git a/unit_tests.sh b/unit_tests.sh index b4cf7c06e..2ffdd72b3 100755 --- a/unit_tests.sh +++ b/unit_tests.sh @@ -6,7 +6,7 @@ for directory in $(find . -name unit_tests) do home=`pwd` cd $directory - qmake -spec $QMAKESPEC - $action + qmake -spec $QMAKESPEC || exit 1 + $action || exit 1 cd $home done \ No newline at end of file