Skip to content

Fix tests running on systemd with a merged /usr

Emanuele Aina requested to merge wip/em/fix-on-merged-usr into apertis/v2020dev0

On merged /usr systems, launching ping will end up executing /usr/bin/ping instead of /bin/ping, causing tests to fail as the AppArmor profile matches on the path.

To avoid that, use which to discover the real location and generate the appropriate AppArmor profile.

Merge request reports