Test must only pack if necessary
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
### Bug Description
Running the test command shouldn't repack the artifact unless it's necessary. Keep a packed file state and use the state service to verify if the file needs to be repacked.
### To Reproduce
Run `snapcraft test` on a project that uses craft testing and see the artifact being packed even if it's not necessary to repack.
### part yaml
```shell
N/A
```
### Relevant log output
```shell
N/A
```
Evaluation history
No evaluation history available.