`test` command always builds with Ubuntu 24.04
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
### Bug Description
The `test` command is a craft-application based command so it's always building with 24.04. We should probably disable it for core22 snaps until we have core22 on craft-application.
### To Reproduce
Clone a core22 snap and run `snapcraft test`
### Environment
n/a
### snapcraft.yaml
```yaml
n/a
```
### Relevant log output
```shell
n/a
```
### Additional context
_No response_
Evaluation history
No evaluation history available.