Skip to content

Commit

Permalink
fix(e2e): resolve mount path when run docker in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
waynelwz committed May 25, 2023
1 parent ee20acb commit d1fa89a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion console/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.PHONY: *
PROXY ?= http://127.0.0.1:5173

ut:
yarn test:coverage
Expand All @@ -14,7 +15,7 @@ e2e-local:
yarn test

e2e-docker:
docker run -it --rm --ipc=host -w /app -e PROXY=${PROXY} -v playwright:/app mcr.microsoft.com/playwright:v1.33.0-jammy yarn test || exit
docker run -it --rm --ipc=host -w /app -e PROXY=${PROXY} -v ./playwright:/app mcr.microsoft.com/playwright:v1.33.0-jammy /bin/bash -c "yarn && yarn test" || exit 1

prepare:
mkdir -p extensions && \
Expand Down
4 changes: 1 addition & 3 deletions scripts/e2e_test/start_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,7 @@ api_test() {
}

console_test() {
pushd ../../console
docker run --rm --ipc=host -w /app -e PROXY=$CONTROLLER_URL -v ./playwright:/app mcr.microsoft.com/playwright:v1.33.0-jammy yarn test || exit
popd
docker run --rm --ipc=host -w /app -e PROXY=$CONTROLLER_URL -v $SWROOT/console/playwright:/app mcr.microsoft.com/playwright:v1.33.0-jammy /bin/bash -c "yarn && yarn test" || exit 1
}

restore_env() {
Expand Down

0 comments on commit d1fa89a

Please sign in to comment.