Merge pull request #12477 from jtattermusch/reveal_hangs

Reveal processes left by our test suite.
pull/12616/head
Jan Tattermusch 7 years ago committed by GitHub
commit a5f46e29bc
  1. 12
      tools/internal_ci/linux/grpc_run_tests_matrix.sh
  2. 5
      tools/internal_ci/macos/grpc_run_tests_matrix.sh
  3. 10
      tools/internal_ci/windows/grpc_run_tests_matrix.bat

@ -20,4 +20,14 @@ cd $(dirname $0)/../../..
source tools/internal_ci/helper_scripts/prepare_build_linux_rc
tools/run_tests/run_tests_matrix.py $RUN_TESTS_FLAGS
tools/run_tests/run_tests_matrix.py $RUN_TESTS_FLAGS || FAILED="true"
# Reveal leftover processes that might be left behind by the build
ps aux | grep -i kbuilder
echo 'Exiting gRPC main test script.'
if [ "$FAILED" != "" ]
then
exit 1
fi

@ -25,6 +25,11 @@ tools/run_tests/run_tests_matrix.py $RUN_TESTS_FLAGS || FAILED="true"
# kill port_server.py to prevent the build from hanging
ps aux | grep port_server\\.py | awk '{print $2}' | xargs kill -9
# Reveal leftover processes that might be left behind by the build
ps aux | grep -i kbuilder
echo 'Exiting gRPC main test script.'
if [ "$FAILED" != "" ]
then
exit 1

@ -17,8 +17,10 @@ cd /d %~dp0\..\..\..
call tools/internal_ci/helper_scripts/prepare_build_windows.bat
python tools/run_tests/run_tests_matrix.py %RUN_TESTS_FLAGS% || goto :error
goto :EOF
python tools/run_tests/run_tests_matrix.py %RUN_TESTS_FLAGS%
set RUNTESTS_EXITCODE=%errorlevel%
:error
exit /b %errorlevel%
@rem Reveal leftover processes that might be left behind by the build
tasklist /V
exit /b %RUNTESTS_EXITCODE%

Loading…
Cancel
Save