Skip to content

ACR self.cmd did not detect command failure #30478

@nguyenm2151

Description

@nguyenm2151

Describe the bug

ACR team uses the self.cmd command to confirm that our command successfully runs with no errors. However, we have noticed that our test using self.cmd still passes even though our acr agentpool delete command returns an error

self.cmd('acr agentpool delete -n {agents2_name} -r {registry_name} -y')

Related command

acr agentpool delete -n {agents2_name} -r {registry_name}

Errors

NA

Issue script & Debug output

NA

Expected behavior

Test fail when command returns an error message

Environment Summary

{ "auzre-cli": "2.67.0", "azure-cli-core": "2.67.0", "azure-cli-telemetry": "1.1.0", "extensions": { "acrtransfer": "1.1.0" } }

Additional context

No response

Metadata

Metadata

Assignees

Labels

Container Registryaz acrService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions