* defs-static.in: After the addition of TAP-based tests and our renaming
of "simple" test scripts from 'tests/foo.test' to 't/foo.sh', a test name
is valid if it matches the wildcard "*.sh" or "*.tap", not the wildcard
"*.test".  Adjust accordingly.

Signed-off-by: Stefano Lattarini <stefano.lattar...@gmail.com>
---
 defs-static.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/defs-static.in b/defs-static.in
index 1dfd8d3..0647dda 100644
--- a/defs-static.in
+++ b/defs-static.in
@@ -46,7 +46,7 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 
2>&1; then
   # Note: the apparently useless 'eval' below are needed by at least
   # dash 0.5.2, to prevent it from bailing out with an error like
   # "Syntax error: Bad substitution"
-  if eval '[[ "$0" = *."test" ]]'; then
+  if eval '[[ "$0" = *."tap" || "$0" = *."sh" ]]'; then
     # Good, FUNCTION_ARGZERO option was already off when this file was
     # sourced.  Thus we've nothing to do.
     argv0=$0
-- 
1.7.9.5


Reply via email to