Fix: src.ctf.fs: Not resolving event common ctx
[babeltrace.git] / tests / cli / test_trace_copy
index 15b1344b310179ed7b77979805f39b034ce0080f..68ca4d3a3c220a0330979a5ee47f8850b30ec97f 100755 (executable)
@@ -30,10 +30,10 @@ clean_tmp() {
        rm -rf "${out_path}" "${text_output1}" "${text_output2_intermediary}" "${text_output2}"
 }
 
-SUCCESS_TRACES=(${BT_CTF_TRACES_PATH}/succeed/*)
+SUCCESS_TRACES=("${BT_CTF_TRACES_PATH}/succeed/"*)
 
-# -2 because there is an empty trace that we skip
-NUM_TESTS=$((${#SUCCESS_TRACES[@]} * 3 - 2))
+# -4 because there are two empty traces that we skip
+NUM_TESTS=$((${#SUCCESS_TRACES[@]} * 3 - 4))
 
 plan_tests $NUM_TESTS
 
@@ -60,6 +60,7 @@ for path in "${SUCCESS_TRACES[@]}"; do
        # always the same.
        head -1 "${text_output1}" | "${BT_TESTS_GREP_BIN}" "^\[" >/dev/null
        if test $? = 0; then
+               # shellcheck disable=SC2016
                uniq_ts_cnt="$("${BT_TESTS_AWK_BIN}" '{ print $1 }' < "${text_output1}" | sort | uniq | wc -l)"
                # Extract only the timestamp columns and compare the number of
                # unique lines with the total number of lines to see if there
This page took 0.035884 seconds and 4 git commands to generate.