aboutsummaryrefslogtreecommitdiff
path: root/tests/rep-fetch-git-branch.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-02-14 21:51:59 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-02-15 12:12:30 +0300
commit20f9ca076ef178f99f9a5e448fb95df7d95902ed (patch)
tree1935a1db7099d64f0ba923f7de22468d709befbe /tests/rep-fetch-git-branch.test
parent0e1deb6510594c896804b7409e2f33fd2d035e3d (diff)
Convert expected git repo fetch warnings in testscript to infos
Diffstat (limited to 'tests/rep-fetch-git-branch.test')
-rw-r--r--tests/rep-fetch-git-branch.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/rep-fetch-git-branch.test b/tests/rep-fetch-git-branch.test
index 9673c96..ea78986 100644
--- a/tests/rep-fetch-git-branch.test
+++ b/tests/rep-fetch-git-branch.test
@@ -66,7 +66,11 @@ warning: fetching over dumb HTTP, no progress will be shown'
:
{
$clone_root_cfg && $rep_add "$rep/state0/libfoo.git#$branch";
- $* >! 2>!;
+
+ # Convert specific warnings to infos as we expect them to appear. This, in
+ # particular, prevents bbot workers to set task result status to warning.
+ #
+ $* 2>&1 | sed -e 's/warning: (fetching (over|whole) .*)/info: \1/' >&2 2>!;
if ($git_protocol == 'https-dumb')
warn = "warning: fetching whole branch history$reason_dumb$warn_dumb"