exit test script with locust's exit code

This commit is contained in:
hrj 2021-04-02 16:41:33 +05:30
parent 5226e0032e
commit 30f5705aa5
1 changed files with 3 additions and 0 deletions

View File

@ -6,5 +6,8 @@ JAVA_PID=$!
sleep 4 sleep 4
locust --headless -u 1000 -r 100 --run-time 4m --stop-timeout 30 -f tests/locustfile.py locust --headless -u 1000 -r 100 --run-time 4m --stop-timeout 30 -f tests/locustfile.py
status=$?
kill $JAVA_PID kill $JAVA_PID
exit $status