canonical / matter-pi-gpio-commander

Matter Raspberry Pi GPIO Commander - Turn your Pi into a Matter lighting device!
Apache License 2.0
94 stars 2 forks source link

Hardcoded path in tests for local snap build #52

Closed farshidtz closed 6 months ago

farshidtz commented 7 months ago

This will work only if the snap is locally built and freshly installed:

https://github.com/canonical/matter-pi-gpio-commander/blob/a66a4967f6847807017690a32a21564a7493a4b2/tests/snap_test.go#L199

Should use the symbolic link: /snap/matter-pi-gpio-commander/current/bin/test-blink

locnnil commented 6 months ago

As showed here, the approach of only use the symlink to /snap/matter-pi-gpio-commander/current/bin/test-blink doesn't work.