diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/run | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -202,11 +202,13 @@ prepare interimap() { _interimap_cmd "interimap" "$@"; } pullimap() { _interimap_cmd "pullimap" "$@"; } _interimap_cmd() { - declare -a ENVIRON=() r=0 - local script="$1" + declare -a ENVIRON=() + local script="$1" rv=0 shift environ_set "local" - env -i "${ENVIRON[@]}" perl -I./lib -T "./$script" "$@" 2> >(tee "$STDERR" >&2) + env -i "${ENVIRON[@]}" perl -I./lib -T "./$script" "$@" 2>"$STDERR" || rv=$? + cat <"$STDERR" >&2 + return $rv } interimap_init() { local u="${1-remote}" |