Skip to content

Commit

Permalink
Fixed commands
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjol committed Jun 10, 2024
1 parent c1afe2a commit 47c50d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions commands/backstopjs/backstopjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
## Example: "ddev backstopjs version"
## ExecRaw: true

FOLDER=${$1:-local}
ARGS=${@:2}
FOLDER=$1

ARGS=${*:2}

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

cd /src/tests/backstopjs/$FOLDER
cd /src/tests/$FOLDER || exit 1
NODE_PATH="/usr/local/lib/node_modules/" backstop "$ARGS"
2 changes: 1 addition & 1 deletion docker-compose.backstopjs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: ${DDEV_APPROOT}
volumes:
- ../tests:/src/tests
- ../tests/backstopjs:/src/tests
- .:/mnt/ddev_config:ro
- ddev-global-cache:/mnt/ddev-global-cache
networks:
Expand Down

0 comments on commit 47c50d6

Please sign in to comment.