mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 19:17:28 +01:00
Removes lab-only runner scenarios and suites from seaweed-block/, keeps the scenarios this tree's CI uses with environment placeholders, and guards every artifact-root use before any cleanup. Includes the maintainer's follow-ups from #13419 and #13423. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
634 B
Bash
15 lines
634 B
Bash
#!/usr/bin/env bash
|
|
# Parse commands AND env parameters, then execute every complete guarded action
|
|
# with cleanup stubs. Requires Go and a POSIX shell; never contacts a cluster.
|
|
# Usage: bash scripts/testops-artifact-root-guard-test.sh [scenario dir]
|
|
set -euo pipefail
|
|
here=$(cd "$(dirname "$0")" && pwd)
|
|
dir=$(cd "${1:-$here/../testops/scenarios}" && pwd)
|
|
go_cmd=${GO:-go}
|
|
if [ "$("$go_cmd" env GOOS)" = windows ]; then
|
|
echo 'artifact-root controls require a POSIX Go runtime (for example, in WSL)' >&2
|
|
exit 2
|
|
fi
|
|
cd "$here/.."
|
|
TESTOPS_SCENARIO_DIR="$dir" "$go_cmd" test ./scripts -run '^TestTestopsArtifactRootGuards$' -count=1
|