Commit d7358a5 To make trace-cmd show actually stop after 5 seconds.

1 file Authored and Committed by Ziqian SUN (Zamir) 4 months ago
To make trace-cmd show actually stop after 5 seconds.

Signed-off-by: Ziqian SUN (Zamir) <zsun@redhat.com>

    
1 @@ -46,7 +46,7 @@
2           if [[ "${TRACER}" == "function" ]]; then
3               rlPhaseStartTest "Test trace-cmd show"
4                   rlRun "trace-cmd start -p ${TRACER}"
5 -                 rlRun "trace-cmd show | grep -v '^#' > trace-cmd-show-function.log"
6 +                 rlWatchdog "trace-cmd show | grep -v '^#' > trace-cmd-show-function.log" 5 INT
7                   rlAssertGreater "At least one line of trace data" $(cat trace-cmd-show-function.log | wc -l) 1
8                   rlRun "trace-cmd stop"
9                   rlRun "trace-cmd reset"