summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-08-05 15:24:45 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-08-05 15:24:45 +0300
commitf674b837d7d0ea85d899f5b4df788b29b4907f68 (patch)
tree937c5ac79afda87f1a254a68ce47fcad204d155c /tests
parent1b33338c861231d9ab66f2dfca4de27f7a53f5ba (diff)
downloadbdep-f674b837d7d0ea85d899f5b4df788b29b4907f68.tar.gz
bdep-f674b837d7d0ea85d899f5b4df788b29b4907f68.tar.xz
bdep-f674b837d7d0ea85d899f5b4df788b29b4907f68.zip
Convert expected git clone warning to info in bdep-publish testscript
Diffstat (limited to 'tests')
-rw-r--r--tests/publish.test7
1 files changed, 6 insertions, 1 deletions
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;