aboutsummaryrefslogtreecommitdiff
path: root/tests/sync.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-08-10 17:07:12 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-08-10 18:39:14 +0300
commita18674d3476166bedde596af645535b5af904cdc (patch)
tree67d4836d328cbee39aa51c0b14d263db8b74aa76 /tests/sync.testscript
parenta27bde2c4d857125c232ce7517cca7e47479967f (diff)
Fix sync tests not to log warnings/errors at verbosity level 2
Diffstat (limited to 'tests/sync.testscript')
-rw-r--r--tests/sync.testscript12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/sync.testscript b/tests/sync.testscript
index 7005dae..a9fac5c 100644
--- a/tests/sync.testscript
+++ b/tests/sync.testscript
@@ -271,7 +271,11 @@ deinit += -d prj
$config link -d libfoo @cfg @host;
- $init -d libfix -A libfoo-cfg @cfg --no-sync;
+ # Convert specific warnings to infos as we expect them to appear. This, in
+ # particular, prevents bbot workers to set task result status to warning.
+ #
+ $init -d libfix -A libfoo-cfg @cfg --no-sync 2>&1 | \
+ sed -e 's/warning: (added configuration @cfg already linked .*)/info: \1/' >&2 2>!;
# While at it, test synchronizing via the init command.
#
@@ -301,7 +305,11 @@ deinit += -d prj
$config create -d libfoo @cfg libfoo-cfg &libfoo-cfg/***;
- $init -d libfoo --create-host-config --create-build2-config @cfg &libfoo-host/*** &libfoo-build2/*** != 0;
+ # Convert specific errors to infos as we expect them to appear. Not doing
+ # so, makes bbot logs quite confusing.
+ #
+ $init -d libfoo --create-host-config --create-build2-config @cfg &libfoo-host/*** &libfoo-build2/*** 2>&1 != 0 | \
+ sed -e 's/error: (unknown dependency libbuild2-baz .*)/info: \1/' >&2 2>!;
$config list -d libfoo >>~%EOO%
%(@cfg|@host|@build2).+%{3}