G: EPOD acceptance tests; harness: hide and clean other runs' mid-name objects (proxy, teardown, sweep); lock leak cause (Eclipse restart during a write)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -153,9 +153,16 @@ class Runner:
|
||||
return out
|
||||
|
||||
def _objects_with_prefix(self, mcp, prefix):
|
||||
_, text = mcp.call("sap_search_object", {"query": prefix + "*", "maxResults": 200})
|
||||
return [d for d in (_json(text) or []) if d.get("name", "").upper().startswith(prefix)
|
||||
and d.get("objectType")] # skips STOB entries of CDS entities
|
||||
"""Objects of the run: the name starts with the prefix, or contains it after a short type part (the model named its own
|
||||
helper or test class ZCL_<prefix>_..., 27 such objects were left behind before 2026-10-06)."""
|
||||
out = {}
|
||||
for q in (prefix + "*", "*_" + prefix + "*"):
|
||||
_, text = mcp.call("sap_search_object", {"query": q, "maxResults": 200})
|
||||
for d in (_json(text) or []):
|
||||
n = d.get("name", "").upper()
|
||||
if d.get("objectType") and (n.startswith(prefix) or re.match(r"^[A-Z]{1,5}_" + re.escape(prefix), n)):
|
||||
out[n] = d # skips STOB entries of CDS entities (no objectType)
|
||||
return list(out.values())
|
||||
|
||||
def _source(self, mcp, otype, name, fg=None):
|
||||
err, text = mcp.call("sap_pull_source", _obj_args(otype, name, fg))
|
||||
|
||||
Reference in New Issue
Block a user