Use repair.NewCmdShow in the test to avoid appending to internal slice; this follows existing tests in the suite and fixes failures when running the test with -count N.
Merge pull request #11309 from pedronis/attr-matcher-generalize
Generalization is along:
start preparing for different usages to have different sets of $OP() operators allowed have usage context specif word instead of "attribute" mainly in errors
devicestate: ensure permissions of /var/lib/snapd/void are correct
* devicestate: ensure permissions of /var/lib/snapd/void are correct
During the testflinger testing I saw some failures in the `tests/main/cwd` test where the permissions of the `/var/lib/snapd/void` directory are incorrect. On systems that use packaging tools we force the permissions to be 0111 on each refresh (see `debian/snapd.postinst`). However no such mechanism exists on core devices. So if for some reason the permissions get corrupted they never get fixed.
This commit adds code that ensures the permissions are fixed automatically here too.