Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
pathob committed Jun 5, 2023
1 parent 076291d commit daeca9e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -61,3 +70,5 @@ then
else
echo "RESULT: test suceeded :-) - return code 0"
fi

sleep 300

0 comments on commit daeca9e

Please sign in to comment.