aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-01-29 12:21:59 +0100
committerGuilhem Moulin <guilhem@fripost.org>2020-01-29 12:21:59 +0100
commit98a580c5a6f9dd2f2b2ca103a9c6df9f0f77b0d1 (patch)
tree730edd0c0a57e0ca305e58c8452201f705a9010c /tests
parent97b077be640071363918a0a27b0acfddd114ff1a (diff)
parent4bab81b1ccde90990620c157c274e2b2c7831b9f (diff)
Merge tag 'upstream/0.5' into debian
Upstream version 0.5
Diffstat (limited to 'tests')
-rw-r--r--tests/condstore/t2
-rw-r--r--tests/pullimap/t2
-rwxr-xr-xtests/run8
-rw-r--r--tests/sync-live-multi/t2
-rw-r--r--tests/sync-live/t2
5 files changed, 9 insertions, 7 deletions
diff --git a/tests/condstore/t b/tests/condstore/t
index d4da50f..1963b2b 100644
--- a/tests/condstore/t
+++ b/tests/condstore/t
@@ -31,7 +31,7 @@ while [ $(date +%s) -le $timer ]; do
doveadm -u "$u" flags "$a" "$f" mailbox "INBOX" "${seqs//$'\n'/,}"
sleep "0.0$(shuf -n1 -i10-99)" # 10 to 99ms
done
-sleep 2
+sleep 5
ptree_abort $PID
trap - EXIT INT TERM
diff --git a/tests/pullimap/t b/tests/pullimap/t
index 79da3e0..115432d 100644
--- a/tests/pullimap/t
+++ b/tests/pullimap/t
@@ -123,7 +123,7 @@ while [ $(date +%s) -le $timer ]; do
sleep "$s"
done
-sleep 2
+sleep 5
ptree_abort $PID
trap - EXIT INT TERM
diff --git a/tests/run b/tests/run
index a34e4a9..4aa0685 100755
--- a/tests/run
+++ b/tests/run
@@ -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}"
diff --git a/tests/sync-live-multi/t b/tests/sync-live-multi/t
index 9b129ec..ba7f326 100644
--- a/tests/sync-live-multi/t
+++ b/tests/sync-live-multi/t
@@ -96,7 +96,7 @@ done
# wait a little longer so interimap has time to run loop() again and
# synchronize outstanding changes, then terminate the processes we
# started above
-sleep 2
+sleep 5
ptree_abort ${PID[@]}
trap - EXIT INT TERM
diff --git a/tests/sync-live/t b/tests/sync-live/t
index 19d1e08..5f5b291 100644
--- a/tests/sync-live/t
+++ b/tests/sync-live/t
@@ -65,7 +65,7 @@ done
# wait a little longer so interimap has time to run loop() again and
# synchronize outstanding changes, then terminate the process we started
# above
-sleep 2
+sleep 5
ptree_abort $PID
trap - EXIT INT TERM