From 1a1b703f9582eed7aed574c1bf543d6350f3def7 Mon Sep 17 00:00:00 2001
From: Marcel Loose <loose@astron.nl>
Date: Fri, 2 Nov 2012 16:44:59 +0000
Subject: [PATCH] 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.

---
 CEP/Pipeline/test/pipeline_test.run | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/CEP/Pipeline/test/pipeline_test.run b/CEP/Pipeline/test/pipeline_test.run
index 7afad961b81..935f0a1a00d 100755
--- a/CEP/Pipeline/test/pipeline_test.run
+++ b/CEP/Pipeline/test/pipeline_test.run
@@ -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
-- 
GitLab