Skip to content

Commit

Permalink
fix(tests): Always use absolute path in run-docker.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
SystemKeeper committed Aug 26, 2024
1 parent 2ffac2c commit 522a4e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function prepareDocker() {
fi

echo "Installing Nextcloud in the container"
docker exec $NEXTCLOUD_LOCAL_CONTAINER bash -c "cd nextcloud && php occ maintenance:install --admin-pass=admin $NEXTCLOUD_LOCAL_CONTAINER_INSTALL_DATABASE_OPTIONS"
docker exec $NEXTCLOUD_LOCAL_CONTAINER bash -c "cd /nextcloud && php occ maintenance:install --admin-pass=admin $NEXTCLOUD_LOCAL_CONTAINER_INSTALL_DATABASE_OPTIONS"
}

# Removes/stops temporal elements created/started by this script.
Expand Down Expand Up @@ -257,4 +257,4 @@ prepareDocker

echo "Running tests"
# --tty is needed to get colourful output.
docker exec --tty $NEXTCLOUD_LOCAL_CONTAINER bash -c "cd nextcloud/apps/spreed/tests/integration && ./run.sh $SCENARIO_TO_RUN"
docker exec --tty $NEXTCLOUD_LOCAL_CONTAINER bash -c "cd /nextcloud/apps/spreed/tests/integration && ./run.sh $SCENARIO_TO_RUN"

0 comments on commit 522a4e5

Please sign in to comment.