bash script now waits for the rust process to create its server response log before starting tests
This commit is contained in:
parent
e4c6c46061
commit
8986c23dbf
@ -39,8 +39,16 @@ if [ "$1" = "body" ];then
|
|||||||
export _show_body=1
|
export _show_body=1
|
||||||
fi
|
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
|
source ./common.sh
|
||||||
export -f log_result
|
export -f log_result
|
||||||
|
|
||||||
|
echo ================================
|
||||||
echo TestName ExpectedCode ActualCode
|
echo TestName ExpectedCode ActualCode
|
||||||
|
|
||||||
bash ./verify_basic_cases.sh
|
bash ./verify_basic_cases.sh
|
||||||
@ -48,3 +56,4 @@ bash ./verify_basic_cases.sh
|
|||||||
bash ./verify_err_cases.sh
|
bash ./verify_err_cases.sh
|
||||||
|
|
||||||
bash ./verify_mal_cases.sh
|
bash ./verify_mal_cases.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user