From f674b837d7d0ea85d899f5b4df788b29b4907f68 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sun, 5 Aug 2018 15:24:45 +0300 Subject: Convert expected git clone warning to info in bdep-publish testscript --- tests/publish.test | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/publish.test b/tests/publish.test index e17ae75..ea0344e 100644 --- a/tests/publish.test +++ b/tests/publish.test @@ -351,7 +351,12 @@ windows = ($cxx.target.class == 'windows') # making the subsequent publish of prj package impossible until the next # fetch. # - git clone "$rep" prj2 &prj2/*** 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. + # + git clone "$rep" prj2 &prj2/*** 2>&1 | \ + sed -e 's/warning: (remote HEAD refers to nonexistent .*)/info: \1/' >&2 2>!; + $g2 config user.name "Test Script"; $g2 config user.email "testscript@example.com"; $g2 checkout -b build2-control --track origin/build2-control; -- cgit v1.1