tests: add and use bt_grep_ok
[babeltrace.git] / tests / plugins / src.ctf.fs / test-deterministic-ordering.sh
index 6d2eb3a98023cb6120ac2c775d7721259783623b..f66247b2cf3ef13e2d67f5c7aaa956362502185c 100755 (executable)
@@ -66,11 +66,15 @@ expect_failure() {
                -c src.ctf.fs -p "inputs=[${inputs}]"
        isnt 0 "$?" "${test_name}: exit status is not 0"
 
-       bt_grep --silent "^ERROR: " "${stderr_file}"
-       ok "$?" "${test_name}: error stack is produced"
-
-       bt_grep --silent "No event class with ID of event class ID to use in stream class" "${stderr_file}"
-       ok "$?" "${test_name}: expected error message is present"
+       bt_grep_ok \
+               "^ERROR: " \
+               "${stderr_file}" \
+               "${test_name}: error stack is produced"
+
+       bt_grep_ok \
+               "No event class with ID of event class ID to use in stream class" \
+               "$stderr_file" \
+               "$test_name: expected error message is present"
 }
 
 expect_success() {
This page took 0.024399 seconds and 4 git commands to generate.