Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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