[v1,1/1] validation: tm: auto skip test on Shippable in addition to Travis

Message ID 1518631208-21165-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • [v1,1/1] validation: tm: auto skip test on Shippable in addition to Travis
Related show

Commit Message

Github ODP bot Feb. 14, 2018, 6 p.m.
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Apply the same workaround as we have on Travis: retun 77 to mark the
test as skipped if we detect failure while running on top of CI.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 480 (lumag:shippable-tm)
 ** https://github.com/Linaro/odp/pull/480
 ** Patch: https://github.com/Linaro/odp/pull/480.patch
 ** Base sha: 41b3fa2cd994a7ef68290a07dcde5564e4640847
 ** Merge commit sha: cd707e23c12159e50f41ac7b372a0c70af905d13
 **/
 test/validation/api/traffic_mngr/traffic_mngr.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch

diff --git a/test/validation/api/traffic_mngr/traffic_mngr.sh b/test/validation/api/traffic_mngr/traffic_mngr.sh
index c4e2d2976..c88aa805c 100755
--- a/test/validation/api/traffic_mngr/traffic_mngr.sh
+++ b/test/validation/api/traffic_mngr/traffic_mngr.sh
@@ -31,9 +31,7 @@  TEST_SKIPPED=77
 traffic_mngr_main${EXEEXT}
 ret=$?
 
-SIGSEGV=139
-
-if [ "${TRAVIS}" = "true" ] && [ $ret -ne 0 ] && [ $ret -ne ${SIGSEGV} ]; then
+if [ "${CI}" = "true" ] && [ $ret -eq 255 ]; then
 	echo "SKIP: skip due to not isolated environment"
 	exit ${TEST_SKIPPED}
 fi