[PATCH lnst 05/13] recipes: switchdev: TestLib: Add context managers