tests: improve debuggability of `cli/test-trace-copy.sh`
[babeltrace.git] / tests / utils / utils.sh
index 5c7b3eeb54e43bb465c1225da9292e258a2a2811..9081a88e2e871324448adfc0620bae33db4cc4fb 100644 (file)
@@ -487,3 +487,9 @@ bt_gen_mctf_trace() {
        echo "Running: \`${cmd[*]}\`" >&2
        bt_run_in_py_utils_env "${cmd[@]}"
 }
+
+# Call `diag` with the contents of file `$1`.
+
+diag_file() {
+       diag "$(cat "$1")"
+}
This page took 0.023401 seconds and 4 git commands to generate.