Tests: Cleanup redundant code and use printing helper functions
[lttng-tools.git] / tests / ust / high-throughput / run
index de3111ddde8b95540600cb796e43fd2ef8a18fa2..f86a17a14f8fd1e6015a07c6bbe00dc0fdc35ab4 100755 (executable)
@@ -14,6 +14,7 @@
 # You should have received a copy of the GNU Lesser General Public License
 # along with this library; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
+TEST_DESC="UST tracer - Testing high events throughput"
 
 CURDIR=$(dirname $0)/
 TESTDIR=$CURDIR/../..
@@ -24,9 +25,7 @@ EVENT_NAME="tp:tptest"
 
 source $TESTDIR/utils.sh
 
-echo -e "\n-------------------------------------------"
-echo -e "UST tracer - Testing high events throughput"
-echo -e "-------------------------------------------"
+print_test_banner "$TEST_DESC"
 
 if [ ! -x "$CURDIR/$BIN_NAME" ]; then
        echo -e "No UST nevents binary detected. Passing."
@@ -81,11 +80,11 @@ let wanted=$NR_ITER*1000000
 
 if [ $wanted -ne $total ]; then
        echo -n "Expected $wanted. Dropped $dropped. Recorded $traced. Total $total... "
-       echo -e "\e[1;31mFAILED\e[0m"
+       print_fail
        out=1
 else
        echo -n "Expected $wanted. Dropped $dropped. Recorded $traced. Total $total... "
-       echo -e "\e[1;32mOK\e[0m"
+       print_ok
        out=0
 fi
 
This page took 0.024682 seconds and 4 git commands to generate.