X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=tests%2Fcli%2Fquery%2Ftest_query;h=803644ba462a942e6a7312c4f853d5c6788ea1e5;hb=f2ff3e07716405431571e922080367e82da7d04c;hp=1be9fa24287218249173c7772c1f6ea6928a8a33;hpb=8e4fa50c2f51f4769f5cb2a1dcc1ebedc58bd343;p=babeltrace.git diff --git a/tests/cli/query/test_query b/tests/cli/query/test_query index 1be9fa24..803644ba 100755 --- a/tests/cli/query/test_query +++ b/tests/cli/query/test_query @@ -24,7 +24,7 @@ fi # shellcheck source=../../utils/utils.sh SH_TAP=1 source "$UTILSSH" -NUM_TESTS=11 +NUM_TESTS=15 plan_tests $NUM_TESTS @@ -92,6 +92,9 @@ expect_failure "ValueError: catastrophic failure" \ expect_failure 'Cannot find component class: plugin-name="query", comp-cls-name="NonExistentSource", comp-cls-type=1' \ 'src.query.NonExistentSource' 'the-object' '-p' 'a=2' +# Wrong parameter syntax. +expect_failure "Invalid format for --params option's argument:" \ + 'src.query.SourceWithQueryThatPrintsParams' 'please-fail' '-p' 'a=3,' rm -f "$stdout_expected_file" rm -f "$stdout_file"