test/infamy: Fix incorrect call when bailing out of MACVLAN creation

We're calling the bound instance of __exit__, so `self` is
superfluous.
This commit is contained in:
Tobias Waldekranz
2023-06-14 17:40:16 +02:00
committed by Joachim Wiberg
parent 723c325b0d
commit 7eb2269972
+2 -2
View File
@@ -22,14 +22,14 @@ class IsolatedMacVlan:
done
""")
except Exception as e:
self.__exit__(self, None, None, None)
self.__exit__(None, None, None)
raise e
if self.lo:
try:
self.run(["ip", "link", "set", "dev", "lo", "up"])
except Exception as e:
self.__exit__(self, None, None, None)
self.__exit__(None, None, None)
raise e
return self