tests: add and use bt_grep
[babeltrace.git] / tests / cli / query / test-query.sh
index 170749ab2bbf52dc42f962a238bed759c16d9da7..b5e023749820aadd0272a5d5aae4da9304f5d67c 100755 (executable)
@@ -58,10 +58,10 @@ expect_failure() {
 
        # Ensure that a CLI error stack is printed (and that babeltrace doesn't
        # abort before that).
-       grep --silent "^ERROR: " "${stderr_file}"
+       bt_grep --silent "^ERROR: " "${stderr_file}"
        ok $? "${test_name}: babeltrace produces an error stack"
 
-       grep --silent "${expected_str}" "${stderr_file}"
+       bt_grep --silent "${expected_str}" "${stderr_file}"
        ok "$?" "${test_name}: expect \`${expected_str}\` error message on stderr"
 }
 
This page took 0.023447 seconds and 4 git commands to generate.