From a26cadc916b1ddf056f6722cfb470f3e790d1d02 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 19 Feb 2018 22:47:05 +0300 Subject: Convert expected git repo fetch warnings to infos in pkg-status testscript --- tests/pkg-status.test | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/pkg-status.test b/tests/pkg-status.test index 3e27294..511cab2 100644 --- a/tests/pkg-status.test +++ b/tests/pkg-status.test @@ -197,7 +197,12 @@ else : $clone_root_cfg; $rep_add "$rep/libbar.git#master" && $rep_add "$rep/style.git#master"; - $rep_fetch; + + # Convert specific warnings to infos as we expect them to appear. This, in + # particular, prevents bbot workers to set task result status to warning. + # + $rep_fetch 2>&1 | \ + sed -e 's/warning: (fetching (over|whole) .*)/info: \1/' >&2 2>!; $* style-basic >'unknown' } -- cgit v1.1