fix(ddic): create 命令消费 JSON description(--description 优先→JSON→回退名);upload testclasses XML 包裹通道(S4T 三轮实证);SKILL 错误速查表 +4 条 NW740 实证(ADT 创建不持久化文本/classes 激活空响应/unknown comments/STRG+comptype 陷阱)
This commit is contained in:
@@ -919,6 +919,9 @@ class DdicMixin:
|
||||
logger.info("RUN PROGRAM: POST %s", url)
|
||||
resp = self.session.post(url, headers=hdrs)
|
||||
logger.info("RUN PROGRAM RESPONSE: HTTP %s (%d bytes)", resp.status_code, len(resp.content))
|
||||
if resp.status_code != 200:
|
||||
# Log response body to aid diagnosing server-side dumps
|
||||
logger.error("RUN PROGRAM ERROR BODY: %s", resp.text[:4000])
|
||||
resp.raise_for_status()
|
||||
return resp.text
|
||||
|
||||
@@ -962,6 +965,8 @@ class DdicMixin:
|
||||
logger.info("RUN UNIT TEST: POST %s uri=%s", url, obj_uri)
|
||||
resp = self.session.post(url, headers=hdrs, data=body.encode("utf-8"))
|
||||
logger.info("RUN UNIT TEST RESPONSE: HTTP %s", resp.status_code)
|
||||
if resp.status_code != 200 or b"<classes" not in resp.content:
|
||||
logger.error("UNIT TEST BODY: %s", resp.text[:3000])
|
||||
resp.raise_for_status()
|
||||
return self._parse_aunit_result(resp.content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user