CI Tests: make Regression/second-command-not-captured less flaky

Make Regression/second-command-not-captured less flaky by restricting
the output flow, preventing the transport buffers flood (PR29108).
This commit is contained in:
Martin Cermak 2022-05-11 14:49:56 +02:00
parent 8d5d041590
commit ca4fdbacfc
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,9 @@
probe ruby.method.entry, ruby.cmethod.entry {
printf("%d -> %s::%s %s:%d\n", tid(), classname, methodname, file, line);
if((classname =~ "Array") && (methodname =~ "push"))
printf("%d -> %s::%s %s:%d\n", tid(), classname, methodname, file, line);
}
probe ruby.method.return, ruby.cmethod.return {
printf("%d <- %s::%s %s:%d\n", tid(), classname, methodname, file, line);
if((classname =~ "Array") && (methodname =~ "push"))
printf("%d <- %s::%s %s:%d\n", tid(), classname, methodname, file, line);
}

View File

@ -34,7 +34,7 @@ rlJournalStart
rlPhaseStartTest
rlLog "`which stap`"
rlLog "`stap -V`"
rlRun "stap -s 100 -v ./ruby-exercise.stp -c ./test.sh -o stap.log"
rlRun "stap -v ./ruby-exercise.stp -c ./test.sh -o stap.log"
rlRun "grep 'Array::push' stap.log" ||
rlFileSubmit "stap.log"
rlPhaseEnd