Files
snapd/release
Edu Gómez Escandell 5e0d0a19f8 release, snapd-apparmor: fixed outdated WSL detection (#12135)
* 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>
2022-09-29 09:52:31 +02:00
..