From daeca9e5ec2a3d69f0964262fd9b6acd129a45a2 Mon Sep 17 00:00:00 2001 From: Patrick Hobusch Date: Mon, 5 Jun 2023 20:49:09 +0800 Subject: [PATCH] WIP --- entrypoint.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 46ed2b0..17862bb 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -53,6 +53,15 @@ fi echo "" +# If JMETER_ARGS contain '-o' option, output all files in the directory passed by the '-o' option +echo "JMeter reports:" +if [[ ${JMETER_ARGS} == *-o* ]] +then + find $(echo ${JMETER_ARGS} | sed s/.*-o// | cut -d " " -f 2) -type f -exec cat {} \; +fi + +echo "" + # Evaluate JMeter process output if grep -q -E 'Err:.+[1-9]\W\(' output.log then @@ -61,3 +70,5 @@ then else echo "RESULT: test suceeded :-) - return code 0" fi + +sleep 300