From: Mathieu Desnoyers Date: Wed, 19 Nov 2014 21:40:31 +0000 (+0100) Subject: Fix: tests: wait output hide Terminate errors X-Git-Tag: v2.4.4~10 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b44a3eee151f91332ff42c5c63cb39f3226a3051;p=lttng-tools.git Fix: tests: wait output hide Terminate errors Also: Don't hide kill errors. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau Conflicts: tests/regression/tools/mi/test_mi --- diff --git a/tests/regression/tools/live/test_kernel b/tests/regression/tools/live/test_kernel index bf5e79c57..4b958dff8 100755 --- a/tests/regression/tools/live/test_kernel +++ b/tests/regression/tools/live/test_kernel @@ -88,7 +88,7 @@ clean_live_tracing # Kill the relayd PID_RELAYD=`pidof lt-$RELAYD_BIN` -kill $PID_RELAYD >/dev/null 2>&1 +kill $PID_RELAYD if [ $? -eq 1 ]; then echo "Kill lttng-relayd (pid: $PID_RELAYD)" exit 1 @@ -102,7 +102,7 @@ fi # Kill the sessiond PID_SESSIOND=`pidof lt-$SESSIOND_BIN` -kill $PID_SESSIOND >/dev/null 2>&1 +kill $PID_SESSIOND if [ $? -eq 1 ]; then echo "Kill sessiond daemon" exit 1 diff --git a/tests/regression/tools/live/test_ust b/tests/regression/tools/live/test_ust index e20150965..5eca6a348 100755 --- a/tests/regression/tools/live/test_ust +++ b/tests/regression/tools/live/test_ust @@ -92,7 +92,7 @@ clean_live_tracing # Kill the relayd PID_RELAYD=`pidof lt-$RELAYD_BIN` -kill $PID_RELAYD >/dev/null 2>&1 +kill $PID_RELAYD if [ $? -eq 1 ]; then echo "Kill lttng-relayd (pid: $PID_RELAYD)" exit 1 @@ -106,7 +106,7 @@ fi # Kill the sessiond PID_SESSIOND=`pidof lt-$SESSIOND_BIN` -kill $PID_SESSIOND >/dev/null 2>&1 +kill $PID_SESSIOND if [ $? -eq 1 ]; then echo "Kill sessiond daemon" exit 1 diff --git a/tests/regression/tools/live/test_ust_tracefile_count b/tests/regression/tools/live/test_ust_tracefile_count index 63d785476..cf883c533 100755 --- a/tests/regression/tools/live/test_ust_tracefile_count +++ b/tests/regression/tools/live/test_ust_tracefile_count @@ -93,7 +93,7 @@ clean_live_tracing # Kill the relayd PID_RELAYD=`pidof lt-$RELAYD_BIN` -kill $PID_RELAYD >/dev/null 2>&1 +kill $PID_RELAYD if [ $? -eq 1 ]; then echo "Kill lttng-relayd (pid: $PID_RELAYD)" exit 1 @@ -107,7 +107,7 @@ fi # Kill the sessiond PID_SESSIOND=`pidof lt-$SESSIOND_BIN` -kill $PID_SESSIOND >/dev/null 2>&1 +kill $PID_SESSIOND if [ $? -eq 1 ]; then echo "Kill sessiond daemon" exit 1 diff --git a/tests/regression/tools/snapshots/test_ust_streaming b/tests/regression/tools/snapshots/test_ust_streaming index ad0c56b19..55c1087d9 100755 --- a/tests/regression/tools/snapshots/test_ust_streaming +++ b/tests/regression/tools/snapshots/test_ust_streaming @@ -80,7 +80,7 @@ function stop_test_apps() diag "Stopping $TESTAPP_NAME" for p in ${APPS_PID}; do kill ${p} - wait ${p} 2>&1 + wait ${p} 2>/dev/null done APPS_PID= } diff --git a/tests/regression/tools/snapshots/ust_test b/tests/regression/tools/snapshots/ust_test index d8ab18880..552eed231 100755 --- a/tests/regression/tools/snapshots/ust_test +++ b/tests/regression/tools/snapshots/ust_test @@ -71,7 +71,7 @@ function stop_test_apps() diag "Stopping $TESTAPP_NAME" for p in ${APPS_PID}; do kill ${p} - wait ${p} 2>&1 + wait ${p} 2>/dev/null done APPS_PID= } diff --git a/tests/regression/ust/overlap/test_overlap b/tests/regression/ust/overlap/test_overlap index add8ff140..3a8af98a7 100755 --- a/tests/regression/ust/overlap/test_overlap +++ b/tests/regression/ust/overlap/test_overlap @@ -45,8 +45,9 @@ run_demo_app() cd $CURDIR/demo # Start test + diag "Running application" ./demo-trace >/dev/null 2>&1 - ok $? "Start application" + ok $? "Application done" cd - }