Skip to content
Snippets Groups Projects
Commit 1a1b703f authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #2699: unittest_runner returns the number of failed tests as exit status....

Task #2699: unittest_runner returns the number of failed tests as exit status. However, the test framework treats exit status 3 as a skipped test. Moreover, since CMake doesn't provide a means to skip tests at run-time, exit status 3 is converted to 0. Hence, a run with three failing tests will inadvertently be flagged as 'passed'. This has been fixed by converting a non-zero exit status of unittest_runner to 1.
parent 625cc835
No related branches found
No related tags found
No related merge requests found
......@@ -12,3 +12,9 @@ PYTHONPATH=${srcdir}/test_framework/fixture:${PYTHONPATH}
export PYTHONPATH
python ${srcdir}/test_framework/unittest_runner.py -x results.xml -p ${srcdir}
if [ $? -ne 0 ]; then
return 1
else
return 0
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment