[#29] lm2测试非GPU节点通过,新增宿主机空闲端口检测,遗留网页超链接使用静态端口问题
This commit is contained in:
@@ -6,7 +6,12 @@ TEST_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
TMP_DIR="$TEST_ROOT/tmp/metric-verify"
|
||||
mkdir -p "$TMP_DIR"
|
||||
|
||||
MASTER_BASE="http://localhost:32300/api/v1/master"
|
||||
# 载入端口变量
|
||||
if [[ -f "$TEST_ROOT/.env" ]]; then
|
||||
set -a; source "$TEST_ROOT/.env"; set +a
|
||||
fi
|
||||
|
||||
MASTER_BASE="http://localhost:${MASTER_PORT:-32300}/api/v1/master"
|
||||
HOSTNAME="${METRIC_TEST_HOSTNAME:-test-metric-node-001}"
|
||||
|
||||
curl_json() { curl -fsS --max-time 5 "$1"; }
|
||||
|
||||
Reference in New Issue
Block a user