File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6767
6868# Check if "unit-test" container has failed
6969EXIT_CODE=$( docker inspect -f ' {{.State.ExitCode}}' unit-tests 2> /dev/null)
70+
7071if [ -z " $EXIT_CODE " ]; then
7172 printf " \n❌ Unit tests container not found or failed to start\n"
7273 EXIT_CODE=1
7374else
7475 printf " \n📋 Unit tests completed with exit code: ${EXIT_CODE} \n"
7576fi
7677
78+ # Capture Dataverse logs after tests complete
79+ printf " \n📝 Capturing Dataverse logs...\n"
80+ docker logs dataverse > dv/dataverse-logs.log 2>&1
81+
7782if [ " ${EXIT_CODE} " -ne 0 ]; then
7883 printf " \n❌ Unit tests failed. Showing test results...\n\n"
7984 printf " === PYTEST OUTPUT ===\n"
@@ -84,6 +89,7 @@ if [ "${EXIT_CODE}" -ne 0 ]; then
8489 docker logs unit-tests
8590 fi
8691 printf " \n=== END PYTEST OUTPUT ===\n"
92+
8793
8894 printf " \n🧹 Stopping containers...\n"
8995 docker compose \
You can’t perform that action at this time.
0 commit comments