Cleanup: tests: use find's `-name` option instead of grep
[lttng-tools.git] / tests / regression / tools / metadata / test_kernel
index 82faf43b9509ffe9230a63ed792e74f5da494977..630fe2d4a4eb4c7b770fbf9c7be2728d43531e0c 100755 (executable)
@@ -45,7 +45,7 @@ function test_kernel ()
        # bt1 accepts only a directory while bt2 accepts either the metadata
        # file directly or a directory with an immediate metadata file.
        # Settle for the common denominator.
-       metadata_path=$(find "${expected_path}/${session_name}"* | grep metadata)
+       metadata_path=$(find "${expected_path}/${session_name}"* -name "metadata")
        metadata_path=$(dirname "$metadata_path")
 
        $BABELTRACE_BIN --output-format=ctf-metadata "${metadata_path}" > "$metadata"
This page took 0.023465 seconds and 5 git commands to generate.