@@ -50,12 +50,12 @@ while [[ $# -gt 0 ]]; do
5050 CI=true
5151 KEEP_RUNNING=true
5252 START_CONTAINERS=false
53- USE_PREBUILT_IMAGE=true
5453 shift
5554 ;;
5655 --logs)
5756 LOGS=true
5857 NO_TEST=true
58+ START_CONTAINERS=false
5959 shift
6060 ;;
6161 --keep-running)
@@ -84,11 +84,14 @@ while [[ $# -gt 0 ]]; do
8484 --help|-h)
8585 echo " Usage: $0 [OPTIONS]"
8686 echo " Options:"
87- echo " --keep-running Keep Docker containers running after tests complete"
88- echo " --element Include Element web client in the test environment"
89- echo " --no-test Start containers and skip running tests"
90- echo " --image [IMAGE] Use a pre-built Docker image instead of building locally"
91- echo " --help, -h Show this help message"
87+ echo " --start-containers-only Start containers and skip running tests"
88+ echo " --ci Run tests in CI mode (keep containers running, no cleanup)"
89+ echo " --logs Show logs of rc1 and hs1 containers"
90+ echo " --keep-running Keep Docker containers running after tests complete"
91+ echo " --element Include Element web client in the test environment"
92+ echo " --no-test Start containers and skip running tests"
93+ echo " --image [IMAGE] Use a pre-built Docker image instead of building locally"
94+ echo " --help, -h Show this help message"
9295 echo " "
9396 echo " By default, builds Rocket.Chat locally and runs the 'test' profile"
9497 echo " Use --image to test against a pre-built image (e.g., --image rocketchat/rocket.chat:latest)"
@@ -145,6 +148,7 @@ cleanup() {
145148 exit $TEST_EXIT_CODE
146149 fi
147150 fi
151+
148152 # Show container logs if tests failed
149153 if [ -n " ${TEST_EXIT_CODE:- } " ] && [ " $TEST_EXIT_CODE " -ne 0 ]; then
150154 echo " "
@@ -164,7 +168,7 @@ cleanup() {
164168 if [ " $INCLUDE_ELEMENT " = true ]; then
165169 log_info " - Element: https://element"
166170 fi
167- log_info " To stop containers manually, run: docker compose -f " $DOCKER_COMPOSE_FILE " --profile " $COMPOSE_PROFILE " down -v"
171+ log_info " To stop containers manually, run: docker compose -f \ "$DOCKER_COMPOSE_FILE \ " --profile \ "$COMPOSE_PROFILE \ " down -v"
168172 else
169173 log_info " Cleaning up services..."
170174
0 commit comments