shlist

share and manage lists between multiple people
Log | Files | Refs

commit 99b02858a58943d1b535a16b3527f7c684274dbf
parent 38e15bf848c285587b86054e2f5540862cc6a83f
Author: kyle <kyle@getaddrinfo.net>
Date:   Sun,  6 Dec 2015 18:31:17 -0700

run_tests: remove bad server alive check

- this doesn't work because it only checks the parent
- what we really need is a way to make sure the child that helped us is still
  alive
  - i'm not sure how to do this in a good way right now

Diffstat:
Mrun_tests.sh | 17++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/run_tests.sh b/run_tests.sh @@ -32,24 +32,19 @@ for t in `ls tests/*/Makefile`; do perl sl -p $PORT -d $tmp_file > $test_dir/server.log & server_pid=$! - # run test, complain if failed + # run test, complain if it failed if ! make -s -C $test_dir test; then fail $test_dir "test failed" - kill $server_pid - wait - continue - fi - - # make sure the server is still running - if ! kill -0 $server_pid; then - fail $test_dir "test killed server" + kill -INT $server_pid + wait 2>/dev/null continue fi # kill the server and wait for it to shut down - kill $server_pid + kill -INT $server_pid wait 2>/dev/null + # diff the server's output log if ! make -s -C $test_dir diff; then fail $test_dir "diff failed" continue @@ -60,7 +55,7 @@ for t in `ls tests/*/Makefile`; do done rm -f $tmp_file -printf "\n" +echo if [ $passed -ne 0 ]; then printf "%i %sok%s " $passed $green $reset fi