test(artifacts): assert asset-catalog target refusal only on macOS
Outside Darwin the session reports inspect_asset_catalog as unavailable on the host before the provider checks the target kind, so the Linux test shards would see capability_unavailable rather than unsupported_target. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
637bcb5e41
commit
44d5b4b25e
@@ -141,7 +141,13 @@ it("reports target kinds that artifact operations cannot inspect as unsupported"
|
|||||||
await withClient(async (client) => {
|
await withClient(async (client) => {
|
||||||
for (const [path, operation, requirement] of [
|
for (const [path, operation, requirement] of [
|
||||||
[plist, "decode_interface_builder", "requires an active .app bundle"],
|
[plist, "decode_interface_builder", "requires an active .app bundle"],
|
||||||
[plist, "inspect_asset_catalog", "requires an active .app bundle"],
|
// Elsewhere the session reports asset catalogs as unavailable on the
|
||||||
|
// host before the provider checks the target kind.
|
||||||
|
...(process.platform === "darwin"
|
||||||
|
? ([
|
||||||
|
[plist, "inspect_asset_catalog", "requires an active .app bundle"],
|
||||||
|
] as const)
|
||||||
|
: []),
|
||||||
[tool, "inspect_keyed_archive", "requires an active plist or .app"],
|
[tool, "inspect_keyed_archive", "requires an active plist or .app"],
|
||||||
] as const) {
|
] as const) {
|
||||||
const open = { name: "open_binary", arguments: { path } };
|
const open = { name: "open_binary", arguments: { path } };
|
||||||
|
|||||||
Reference in New Issue
Block a user