diff --git a/tests/test-frappe.sh b/tests/test-frappe.sh index 0161cf55..644b1166 100755 --- a/tests/test-frappe.sh +++ b/tests/test-frappe.sh @@ -7,6 +7,16 @@ source tests/functions.sh project_name="test_frappe" SITE_NAME="test_frappe.localhost" +docker_compose_with_args() { + # shellcheck disable=SC2068 + docker-compose \ + -p $project_name \ + -f installation/docker-compose-common.yml \ + -f installation/docker-compose-frappe.yml \ + -f installation/frappe-publish.yml \ + $@ +} + echo ::group::Setup env cp env-example .env sed -i -e "s/edge/test/g" .env @@ -15,12 +25,7 @@ export $(cat .env) cat .env print_group Start services -docker-compose \ - -p $project_name \ - -f installation/docker-compose-common.yml \ - -f installation/docker-compose-frappe.yml \ - -f installation/frappe-publish.yml \ - up -d +docker_compose_with_args up -d print_group Create site docker run \ @@ -31,5 +36,5 @@ docker run \ frappe/frappe-worker:test new ping_site -docker-compose down +docker_compose_with_args down rm .env