Fix: tests: wait output hide Terminate errors
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 19 Nov 2014 21:40:31 +0000 (22:40 +0100)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 21 Jan 2015 17:07:54 +0000 (12:07 -0500)
Also: Don't hide kill errors.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Conflicts:
tests/regression/tools/mi/test_mi

tests/regression/tools/live/test_kernel
tests/regression/tools/live/test_ust
tests/regression/tools/live/test_ust_tracefile_count
tests/regression/tools/snapshots/test_ust_streaming
tests/regression/tools/snapshots/ust_test
tests/regression/ust/overlap/test_overlap

index bf5e79c574381dbd45f606d943dfdbc6a5775429..4b958dff8ee6761d336b94beb248d2fd9a6a7078 100755 (executable)
@@ -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
index e20150965c180e5d18b9c8aeeba9d93118201032..5eca6a3480778ca808f5397cc6304701eb202ccb 100755 (executable)
@@ -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
index 63d7854763236f45cc0c87d7ac6546494da4f15d..cf883c5339e7e8b246925728822f603bd8539ba9 100755 (executable)
@@ -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
index ad0c56b19c36550d48ce2afe2b0e954d30341532..55c1087d9e673ae0aae50e65eb87e10aa23faef1 100755 (executable)
@@ -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=
 }
index d8ab18880a0b9bc7f152533d81c1a1f36e134f1a..552eed2312c0abd91b9bbe008368f850ee7e180c 100755 (executable)
@@ -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=
 }
index add8ff140ee5f3bc4c4e9fab33c8f2e29658f9cf..3a8af98a72f18343493cd6e737b1c90b95c4e3f0 100755 (executable)
@@ -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 -
 }
This page took 0.028511 seconds and 4 git commands to generate.