diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2020-01-29 12:21:59 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2020-01-29 12:21:59 +0100 |
commit | 98a580c5a6f9dd2f2b2ca103a9c6df9f0f77b0d1 (patch) | |
tree | 730edd0c0a57e0ca305e58c8452201f705a9010c /tests/run | |
parent | 97b077be640071363918a0a27b0acfddd114ff1a (diff) | |
parent | 4bab81b1ccde90990620c157c274e2b2c7831b9f (diff) |
Merge tag 'upstream/0.5' into debian
Upstream version 0.5
Diffstat (limited to 'tests/run')
-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}" |