Skip to content

Commit

Permalink
Comment screenshots link of failed tests directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Talank committed Mar 15, 2022
1 parent f85f534 commit 22d6930
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/gui/drone/comment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ else
echo "creating comment for GUI log"
# if there is index.html generated by squishrunner then create a comment indicating link of GUI result
if [[ -f $1/index.html ]]; then
echo ":boom: The GUI tests failed."
echo ":boom: The GUI tests failed." >> $1/comments.file
echo "GUI Logs: (${CACHE_ENDPOINT}/${CACHE_BUCKET}/$2/$3/guiReportUpload/index.html)" >> $1/comments.file
fi

Expand All @@ -25,7 +25,9 @@ else

if ! [[ $(find $1/screenshots -maxdepth 0 -empty) ]]; then
echo "creating comment for screenshots"
echo $(ls $1/screenshots)
echo "Screenshots: (${CACHE_ENDPOINT}/${CACHE_BUCKET}/$2/$3/guiReportUpload/screenshots)" >> $1/comments.file
echo "Screenshots:" >> $1/comments.file
for i in $(ls $1/screenshots); do
echo "- [$i](${CACHE_ENDPOINT}/${CACHE_BUCKET}/$2/$3/guiReportUpload/screenshots/$i)" >> $1/comments.file
done
fi
fi

0 comments on commit 22d6930

Please sign in to comment.