# Copyright (C) 2019 Simon Marchi <simon.marchi@efficios.com>
#
-if [ "x${BT_TESTS_SRCDIR:-}" != "x" ]; then
+if [ -n "${BT_TESTS_SRCDIR:-}" ]; then
UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh"
else
UTILSSH="$(dirname "$0")/../../utils/utils.sh"
'src.query.SourceWithQueryThatPrintsParams' 'please-fail' '-p' 'a=2'
# Non-existent component class.
-expect_failure 'Cannot find component class: plugin-name="query", comp-cls-name="NonExistentSource", comp-cls-type=1' \
+expect_failure 'Cannot find component class: plugin-name="query", comp-cls-name="NonExistentSource", comp-cls-type=SOURCE' \
'src.query.NonExistentSource' 'the-object' '-p' 'a=2'
# Wrong parameter syntax.