Files
seaweedfs/seaweed-block/scripts/testops-artifact-root-guard-test.sh
T
Ping QiuandClaude Opus 5.5 e17e30b4aa seaweed-block: keep only the runner scenarios this tree uses (#13418)
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>
2026-12-05 03:20:55 -08:00

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