- bt_cli "/dev/null" "/dev/null" "${path}" --component sink.ctf.fs "--params=path=\"${out_path}\""
- ok $? "Copy trace ${trace} with ctf-fs sink"
+ bt_cli "/dev/null" "${stderr_file}" "${path}" --component sink.ctf.fs "--params=path=\"${out_path}\""
+ if ! ok $? "Copy trace ${trace} with ctf-fs sink"; then
+ diag "stderr:"
+ diag_file "${stderr_file}"
+ fi
+
+ bt_cli "/dev/null" "${stderr_file}" "${out_path}"
+ if ! ok $? "Read the new trace in ${out_path}"; then
+ diag "stderr:"
+ diag_file "${stderr_file}"
+ fi