From 20f9ca076ef178f99f9a5e448fb95df7d95902ed Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 14 Feb 2018 21:51:59 +0300 Subject: Convert expected git repo fetch warnings in testscript to infos --- tests/rep-fetch-git-branch.test | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" -- cgit v1.1