tests: silence "variable/expression in single quote" shellcheck warnings
[babeltrace.git] / tests / cli / convert / test_auto_source_discovery_grouping
index 85f324d843a0b274930c01396598351ca67ae801..8378e625a70ffa8068978efb6e4872fa5d680fe9 100755 (executable)
@@ -30,7 +30,7 @@ NUM_TESTS=3
 
 plan_tests $NUM_TESTS
 
-data_dir="${BT_TESTS_DATADIR}/cli/convert/auto-source-discovery-grouping"
+data_dir="${BT_TESTS_DATADIR}/auto-source-discovery/grouping"
 plugin_dir="${data_dir}"
 trace_dir="${data_dir}/traces"
 
@@ -44,12 +44,12 @@ else
        dir_sep='/'
 fi
 
-stdout_expected_file="${data_dir}/stdout.expect"
+stdout_expected_file="${BT_TESTS_DATADIR}/cli/convert/auto-source-discovery-grouping.expect"
 stdout_actual_file=$(mktemp -t stdout-actual.XXXXXX)
 stderr_actual_file=$(mktemp -t actual-stderr.XXXXXX)
 
 bt_cli "$stdout_actual_file" "$stderr_actual_file" \
-       convert --plugin-path "${plugin_dir}" "ABCDE" "${trace_dir}" some_other_non_opt \
+       --plugin-path "${plugin_dir}" convert "ABCDE" "${trace_dir}" some_other_non_opt \
        -c sink.text.details --params='with-metadata=false'
 ok "$?" "CLI runs successfully"
 
@@ -58,6 +58,7 @@ bt_diff "$stdout_expected_file" "$stdout_actual_file"
 ok "$?" "expected components are instantiated with expected inputs"
 
 # Check that expected warning is printed.
+# shellcheck disable=SC2016
 grep -q 'No trace was found based on input `some_other_non_opt`' "$stderr_actual_file"
 ok "$?" "warning is printed"
 
This page took 0.024191 seconds and 4 git commands to generate.