cli: make --plugin-path and --omit-{system,home}-plugin-path global opts
[babeltrace.git] / tests / cli / convert / test_auto_source_discovery_log_level
index 5e79b01345fcaf5177165d6d5e497102275f2da8..459a362497c3d3df7e46f63269c20d444ecc8cf2 100755 (executable)
@@ -31,7 +31,7 @@ NUM_TESTS=4
 
 plan_tests $NUM_TESTS
 
-data_dir="${BT_TESTS_DATADIR}/cli/convert/auto-source-discovery-params-log-level"
+data_dir="${BT_TESTS_DATADIR}/auto-source-discovery/params-log-level"
 plugin_dir="${data_dir}"
 dir_a="${data_dir}/dir-a"
 dir_b="${data_dir}/dir-b"
@@ -67,7 +67,7 @@ Stream end
 END
 
 bt_diff_cli "$expected_file" "/dev/null" \
-       convert --plugin-path "${plugin_dir}" \
+       --plugin-path "${plugin_dir}" convert \
        "${dir_ab}" --log-level DEBUG ${print_log_level} \
        ${details_sink[@]}
 ok "$?" "apply log level to two components from one non-option argument"
@@ -94,7 +94,7 @@ Stream end
 END
 
 bt_diff_cli "$expected_file" "/dev/null" \
-       convert --plugin-path "${plugin_dir}" \
+       --plugin-path "${plugin_dir}" convert \
        "${dir_a}" --log-level DEBUG ${print_log_level} "${dir_b}" --log-level TRACE ${print_log_level} \
        ${details_sink[@]}
 ok "$?" "apply log level to two non-option arguments"
@@ -121,7 +121,7 @@ Stream end
 END
 
 bt_diff_cli "$expected_file" "/dev/null" \
-       convert --plugin-path "${plugin_dir}" \
+       --plugin-path "${plugin_dir}" convert \
        "${dir_a}" --log-level DEBUG ${print_log_level} "${dir_ab}" --log-level TRACE ${print_log_level} \
        ${details_sink[@]}
 ok "$?" "apply log level to one component coming from one non-option argument and one component coming from two non-option arguments (1)"
@@ -148,7 +148,7 @@ Stream end
 END
 
 bt_diff_cli "$expected_file" "/dev/null" \
-       convert --plugin-path "${plugin_dir}" \
+       --plugin-path "${plugin_dir}" convert \
        "${dir_ab}" --log-level DEBUG ${print_log_level} "${dir_a}" --log-level TRACE ${print_log_level} \
        ${details_sink[@]}
 ok "$?" "apply log level to one component coming from one non-option argument and one component coming from two non-option arguments (2)"
This page took 0.025644 seconds and 4 git commands to generate.