You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2014/08/26 19:00:57 UTC

git commit: Fixed timed_tests.sh script to preserve exit status of the test.

Repository: mesos
Updated Branches:
  refs/heads/master 1ebe21469 -> 9f51e52cb


Fixed timed_tests.sh script to preserve exit status of the test.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/9f51e52c
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/9f51e52c
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/9f51e52c

Branch: refs/heads/master
Commit: 9f51e52cbd216d32d412d355819dd4cc5c530b68
Parents: 1ebe214
Author: Vinod Kone <vi...@gmail.com>
Authored: Tue Aug 26 09:58:35 2014 -0700
Committer: Vinod Kone <vi...@gmail.com>
Committed: Tue Aug 26 10:00:36 2014 -0700

----------------------------------------------------------------------
 support/timed_tests.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/9f51e52c/support/timed_tests.sh
----------------------------------------------------------------------
diff --git a/support/timed_tests.sh b/support/timed_tests.sh
index e060966..798b38f 100755
--- a/support/timed_tests.sh
+++ b/support/timed_tests.sh
@@ -45,7 +45,11 @@ while [ $(($(date +"%s") - $start)) -lt $duration ]; do
   running=`ps p $test_cmd_pid h | wc -l`
   if [ $running -eq 0 ]; then
     echo "Test finished"
-    exit 0
+    # Get the exit status.
+    wait $test_cmd_pid
+    exit_status=$?
+    echo "Exit status: $exit_status"
+    exit $exit_status
   fi
 
   sleep 5
@@ -75,4 +79,4 @@ echo "Test failed and killing the stuck test process"
 # Kill all processes in the test process session.
 pkill -s 0
 
-exit 1
\ No newline at end of file
+exit 1