diff --git a/unit_tests.sh b/unit_tests.sh index 2ffdd72b3..c67679c8d 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 || exit 1 + [ -z $QMAKESPEC ] && { qmake || exit 1; } || { qmake -spec $QMAKESPEC || exit 1; } $action || exit 1 cd $home -done \ No newline at end of file +done