Skip to content

Commit

Permalink
Use absolute path for opening backstop results
Browse files Browse the repository at this point in the history
  • Loading branch information
mmunz committed Jan 28, 2024
1 parent c712d1a commit c011de2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion commands/backstop/backstop
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
## ExecRaw: true

if [ "$1" == "openReport" -o "$1" == "remote" ]; then
echo "This does not work for backstop in ddev"
echo "This does not work for backstop in ddev. See ddev backstop-results command."
exit 1
fi

Expand Down
6 changes: 3 additions & 3 deletions commands/host/backstop-results
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

case $OSTYPE in
linux-gnu)
xdg-open tests/backstop/backstop_data/html_report/index.html
xdg-open ${DDEV_APPROOT}/tests/backstop/backstop_data/html_report/index.html
;;
"darwin"*)
open tests/backstop/backstop_data/html_report/index.html
open ${DDEV_APPROOT}/tests/backstop/backstop_data/html_report/index.html
;;
"win*"* | "msys"*)
start tests/backstop/backstop_data/html_report/index.html
start ${DDEV_APPROOT}/tests/backstop/backstop_data/html_report/index.html
;;
esac

0 comments on commit c011de2

Please # to comment.