#!/bin/bash # set -euo pipefail TEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}" source "${TEST_DIR}/../../shared.sh" initdb="$BUILD_DIR/initdb-$container_name" prepare_dir_to_mount 8983 "$initdb" cat > "$initdb/create-was-here.sh" < "$initdb/ignore-me" <"$log" 2>&1; then echo "Could not get logs for $container_name" exit fi if ! grep -q 'ignoring /docker-entrypoint-initdb.d/ignore-me' "$log"; then echo "missing ignoring message" cat "$log" exit 1 fi rm "$log" rm -fr "$initdb" container_cleanup "$container_name" echo "Test $TEST_NAME $tag succeeded"