Tests: add a local size-based rotation test in per-uid buffering mode
[lttng-tools.git] / tests / utils / utils.sh
index b8b9a6b49b8d4af5055de467304072431eb50bf2..18b673b11452491bc3946abda5aa0225d53be587 100644 (file)
@@ -1921,10 +1921,10 @@ function validate_metadata_event ()
        local count=$($BABELTRACE_BIN --output-format=ctf-metadata $metadata_path | grep $event_name | wc -l)
 
        if [ "$count" -ne "$nr_event_id" ]; then
-               fail "Metadata match with the metadata of $count event(s) named $event_name"
-               diag "$count matching event id found in metadata"
+               fail "Metadata match with the metadata of $nr_event_id event(s) named $event_name"
+               diag "$count matching event names found in metadata"
        else
-               pass "Metadata match with the metadata of $count event(s) named $event_name"
+               pass "Metadata match with the metadata of $nr_event_id event(s) named $event_name"
        fi
 
 }
@@ -2265,9 +2265,9 @@ function lttng_enable_rotation_size ()
        ret=$?
        if [[ $expected_to_fail -eq "1" ]]; then
                test "$ret" -ne "0"
-               ok $? "Expected fail on rotate session $sess_name"
+               ok $? "Expected to fail to set a periodic rotation of session $sess_name" "every " $size " bytes"
        else
-               ok $ret "Rotate session $sess_name"
+               ok $ret "Set a scheduled rotation of session $sess_name" "every " $size " bytes"
        fi
 }
 
This page took 0.023843 seconds and 4 git commands to generate.