From 30f5705aa51c4e25d88d84d3526ae0f68e35e9a3 Mon Sep 17 00:00:00 2001 From: hrj Date: Fri, 2 Apr 2021 16:41:33 +0530 Subject: [PATCH] exit test script with locust's exit code --- tests/run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/run.sh b/tests/run.sh index 0eebb9b..da76e76 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -6,5 +6,8 @@ JAVA_PID=$! sleep 4 locust --headless -u 1000 -r 100 --run-time 4m --stop-timeout 30 -f tests/locustfile.py +status=$? kill $JAVA_PID + +exit $status