[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FYI] {maint} tests: fix setup for older Zsh
From: |
Stefano Lattarini |
Subject: |
[FYI] {maint} tests: fix setup for older Zsh |
Date: |
Sat, 23 Jun 2012 10:36:25 +0200 |
* 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 <address@hidden>
---
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [FYI] {maint} tests: fix setup for older Zsh,
Stefano Lattarini <=