This patch makes barectf_config_check_fail() in `config/common.bash`
check that the output of `barectf` contains the string
configuration: cannot create configuration
so as to ensure that the failure is _at least_ caused by a configuration
error, even if we don't know if the real failure cause matches what the
test intends to verify.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
run barectf "$1"
+ if [[ $output != *'configuration: cannot create configuration'* ]]; then
+ echo "Fail: barectf does not print a configuration error" 1>&2
+ popd >/dev/null
+ return 1
+ fi
+
if [ "$status" -eq 0 ]; then
echo "Fail: exit code is 0" 1>&2
popd >/dev/null