bash script now waits for the rust process to create its server response log before starting tests

This commit is contained in:
shockrah 2020-08-10 13:45:03 -07:00
parent e4c6c46061
commit 8986c23dbf

View File

@ -39,8 +39,16 @@ if [ "$1" = "body" ];then
export _show_body=1
fi
# Waiting until the web server actuall finishes starting up
echo Waiting on server.log
while ! grep "Serving" ../server.log > /dev/null; do
sleep 1
done
source ./common.sh
export -f log_result
echo ================================
echo TestName ExpectedCode ActualCode
bash ./verify_basic_cases.sh
@ -48,3 +56,4 @@ bash ./verify_basic_cases.sh
bash ./verify_err_cases.sh
bash ./verify_mal_cases.sh