mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
* Chenged bad kernel check in favour of WSLInterop * Fixed bug in unit tests * Added cyclic import loop comment * Removed redundant isWSL from main * Fixed tests broken by prev commit * Adhering to code style (thanks @MiguelPires) * cmd/snapd-apparmor: Niche bugfix in container detection * snapd-apparmor: Simplified tests * snapd-apparmor: Fixed MockWSL calls * Removed nonsense comment * snapd-apparamor: Fixed WSL2 IsContainer test * Update cmd/snapd-apparmor/main_test.go Co-authored-by: Miguel Pires <miguelpires94@gmail.com> * Update cmd/snapd-apparmor/export_test.go Co-authored-by: Miguel Pires <miguelpires94@gmail.com> * snapd-apparmor: moved MockWSL into main_test * snapd-apparmor: Redundant detectCmd.Restore() * MockWSL -> testutil.Backup * Revert "MockWSL -> testutil.Backup" This reverts commit 36af38165d558cac493cf661c6fc313f1cb14a40. * Using testutil.Backup * snapd-apparmor: Fixed MockWSL * MockWSL -> mockWSL * snpad-apparmor: Fixed WSL2 custom kernel test * snapd-apparmor: Added comment explaining test Co-authored-by: Miguel Pires <miguelpires94@gmail.com>