Tests: tap.sh spams tests' output when no plan is set
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Jun 2016 20:37:57 +0000 (16:37 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Jun 2016 20:37:57 +0000 (16:37 -0400)
Some tests are implemented in C (using tap.h) or in Python
and don't use tap.sh's facilities. However, it is sourced
by utils.sh and prints an error message during its clean-up
because a plan was never set.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/tap/tap.sh

index 24ac1aa250d6a092ef9cd8a2c4bb21e9ea75d331..2acec57d4dc46c6cffd6c6aba54d9b47e2241272 100755 (executable)
@@ -392,11 +392,6 @@ BAIL_OUT(){
 _cleanup(){
     local rc=0
 
-    if (( _plan_set == 0 )) ; then
-        diag "Looks like your test died before it could output anything."
-        return $rc
-    fi
-
     if (( _test_died != 0 )) ; then
         diag "Looks like your test died just after $_executed_tests."
         return $rc
This page took 0.028173 seconds and 5 git commands to generate.