diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-07-27 16:41:26 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-08-17 11:36:58 +0200 |
commit | 81e42e0d3f0345c28f3d19841c89c4b1975c37a7 (patch) | |
tree | 15f7be76e716d0039e7b24be572035d6fcfcc423 | |
parent | 53e7b7e8ac44704199a868c0f6850ac53a0b8ad1 (diff) |
Fix onError
-rw-r--r-- | tests/common.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common.sh.in b/tests/common.sh.in index 79da10199..73c2d2309 100644 --- a/tests/common.sh.in +++ b/tests/common.sh.in @@ -193,7 +193,7 @@ fi onError() { set +x echo "$0: test failed at:" >&2 - for ((i = 1; i < 16; i++)); do + for ((i = 1; i < ${#BASH_SOURCE[@]}; i++)); do if [[ -z ${BASH_SOURCE[i]} ]]; then break; fi echo " ${FUNCNAME[i]} in ${BASH_SOURCE[i]}:${BASH_LINENO[i-1]}" >&2 done |