janhoy commented on code in PR #3784:
URL: https://github.com/apache/solr/pull/3784#discussion_r2448450756
##########
solr/packaging/test/test_extraction.bats:
##########
@@ -18,7 +18,26 @@
load bats_helper
+setup_file() {
+ if command -v docker >/dev/null 2>&1 && docker info >/dev/null 2>&1; then
+ export TIKA_PORT=$((SOLR_PORT+5))
+ docker run --rm -p ${TIKA_PORT}:9998 --name bats_tika -d
apache/tika:3.2.3.0-full >/dev/null 2>&1 || true
+ echo "Tika Server started on port ${TIKA_PORT}" >&3
+ else
+ export DOCKER_UNAVAILABLE=1
+ echo "WARNING: Docker not available (CLI missing or daemon not running);
Tika-dependent tests will be bypassed and marked as passed." >&3
+ fi
+}
+
+teardown_file() {
+ if command -v docker >/dev/null 2>&1 && docker info >/dev/null 2>&1; then
+ echo "Stopping Tika Server container" >&3
+ docker stop bats_tika >/dev/null 2>&1 || true
+ fi
+}
+
setup() {
+ export BATS_VERBOSE=1
Review Comment:
No need
```suggestion
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]